Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-3556

Save IGB logs to file in .igb folder

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Situation: The IGB logger is helpful in identifying issues/problems. However, if IGB crashes there is no record of the log.

      Task: Write the current/last IGB log to a file such that if IGB crashes a user can obtain and view the log to see if there are any warnings/errors that could indicate why IGB crashed. Preference would be for the log file to be saved to the IGB installation directory.

        Attachments

          Activity

          nfreese Nowlan Freese created issue -
          nfreese Nowlan Freese made changes -
          Field Original Value New Value
          Epic Link IGBF-1531 [ 17617 ]
          nfreese Nowlan Freese made changes -
          Assignee Kaushik Gopu [ kgopu ]
          nfreese Nowlan Freese made changes -
          Description Situation: The IGB logger is helpful in identifying issues/problems. However, if IGB crashes there is no record of the log.

          Task: Write the current/last IGB log to a file in the .igb folder such that if IGB crashes a user can obtain and view the log to see if there are any warnings/errors that could indicate why IGB crashed.
          Situation: The IGB logger is helpful in identifying issues/problems. However, if IGB crashes there is no record of the log.

          Task: Write the current/last IGB log to a file such that if IGB crashes a user can obtain and view the log to see if there are any warnings/errors that could indicate why IGB crashed. Preference would be for the log file to be saved to the IGB installation directory.
          Sprint Spring 4 [ 188 ]
          nfreese Nowlan Freese made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          Hide
          kgopu Kaushik Gopu added a comment -
          Show
          kgopu Kaushik Gopu added a comment - logback: https://logback.qos.ch/documentation.html
          ann.loraine Ann Loraine made changes -
          Sprint Spring 4 [ 188 ] Spring 4, Spring 5 [ 188, 189 ]
          ann.loraine Ann Loraine made changes -
          Rank Ranked higher
          Hide
          kgopu Kaushik Gopu added a comment -
          • Implemented file appender to capture the IGB logs.
          • Added View Logs button to the log panel of the IGB.

          Test Instructions

          • Test the functionality in all the OS and check if the log file opens when you hit the "View Logs" button.
          • Run IGB multiple times (at least 2) and verify whether the logs belong to the current session (check timestamp).
          • Changes available in this branch.
          Show
          kgopu Kaushik Gopu added a comment - Implemented file appender to capture the IGB logs. Added View Logs button to the log panel of the IGB. Test Instructions Test the functionality in all the OS and check if the log file opens when you hit the "View Logs" button. Run IGB multiple times (at least 2) and verify whether the logs belong to the current session (check timestamp). Changes available in this branch.
          kgopu Kaushik Gopu made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Additional test instruction:

          • On Mac, simulate a crash by using Apple > Force Quit menu.
          Show
          ann.loraine Ann Loraine added a comment - - edited Additional test instruction: On Mac, simulate a crash by using Apple > Force Quit menu.
          nfreese Nowlan Freese made changes -
          Assignee Kaushik Gopu [ kgopu ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          Hide
          nfreese Nowlan Freese added a comment - - edited

          Testing using installer on Mac:

          • igb_logs.txt found in the .igb folder in the user's home directory - working
          • igb_logs.txt updates with new information as the user interacts with IGB - working
          • If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working
          • Starting IGB overwrites the igb_logs.txt file - working

          Testing using installer on Windows:

          • igb_logs.txt found in the C:\Users\<user>\AppData\Roaming\IGB folder - working
          • igb_logs.txt updates with new information as the user interacts with IGB - working
          • If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working
          • Starting IGB overwrites the igb_logs.txt file - working

          Testing using installer on Linux:

          • igb_logs.txt found in the .igb folder in the user's home directory - working
          • igb_logs.txt updates with new information as the user interacts with IGB - working
          • If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working
          • Starting IGB overwrites the igb_logs.txt file - working

          Ready for pull request.

          Show
          nfreese Nowlan Freese added a comment - - edited Testing using installer on Mac: igb_logs.txt found in the .igb folder in the user's home directory - working igb_logs.txt updates with new information as the user interacts with IGB - working If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working Starting IGB overwrites the igb_logs.txt file - working Testing using installer on Windows: igb_logs.txt found in the C:\Users\<user>\AppData\Roaming\IGB folder - working igb_logs.txt updates with new information as the user interacts with IGB - working If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working Starting IGB overwrites the igb_logs.txt file - working Testing using installer on Linux: igb_logs.txt found in the .igb folder in the user's home directory - working igb_logs.txt updates with new information as the user interacts with IGB - working If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working Starting IGB overwrites the igb_logs.txt file - working Ready for pull request.
          nfreese Nowlan Freese made changes -
          Assignee Kaushik Gopu [ kgopu ]
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] Ready for Pull Request [ 10304 ]
          Hide
          kgopu Kaushik Gopu added a comment -

          PR has been submitted.

          Show
          kgopu Kaushik Gopu added a comment - PR has been submitted.
          kgopu Kaushik Gopu made changes -
          Assignee Kaushik Gopu [ kgopu ] Ann Loraine [ aloraine ]
          kgopu Kaushik Gopu made changes -
          Status Ready for Pull Request [ 10304 ] Pull Request Submitted [ 10101 ]
          Hide
          ann.loraine Ann Loraine added a comment -

          PR is merged.

          I have a doubt:

          • The file name is plural - "igb_logs.txt" instead of "igb_log.txt". Is it plural because there is more than one log?
          • If the log file only reports on one "run" of IGB, seems like it should be "igb_log.txt" instead.
          Show
          ann.loraine Ann Loraine added a comment - PR is merged. I have a doubt: The file name is plural - "igb_logs.txt" instead of "igb_log.txt". Is it plural because there is more than one log? If the log file only reports on one "run" of IGB, seems like it should be "igb_log.txt" instead.
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          Hide
          nfreese Nowlan Freese added a comment -

          The file is within the .igb folder, so we could just call it log.txt

          Show
          nfreese Nowlan Freese added a comment - The file is within the .igb folder, so we could just call it log.txt
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          Hide
          nfreese Nowlan Freese added a comment - - edited

          Kaushik Gopu - please rename the file "log.txt" and create a pull request to "main" branch.

          Show
          nfreese Nowlan Freese added a comment - - edited Kaushik Gopu - please rename the file "log.txt" and create a pull request to "main" branch.
          nfreese Nowlan Freese made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          nfreese Nowlan Freese made changes -
          Status Post-merge Testing In Progress [ 10003 ] To-Do [ 10305 ]
          nfreese Nowlan Freese made changes -
          Assignee Kaushik Gopu [ kgopu ]
          Hide
          kgopu Kaushik Gopu added a comment - - edited
          • Changed file name from igb_logs.txt to log.txt
          • Squashed the commit into the previous commit.
          • Change is available in this branch.
          Show
          kgopu Kaushik Gopu added a comment - - edited Changed file name from igb_logs.txt to log.txt Squashed the commit into the previous commit. Change is available in this branch .
          kgopu Kaushik Gopu made changes -
          Status To-Do [ 10305 ] In Progress [ 3 ]
          kgopu Kaushik Gopu made changes -
          Status In Progress [ 3 ] Needs 1st Level Review [ 10005 ]
          kgopu Kaushik Gopu made changes -
          Assignee Kaushik Gopu [ kgopu ] Nowlan Freese [ nfreese ]
          nfreese Nowlan Freese made changes -
          Status Needs 1st Level Review [ 10005 ] First Level Review in Progress [ 10301 ]
          nfreese Nowlan Freese made changes -
          Status First Level Review in Progress [ 10301 ] To-Do [ 10305 ]
          nfreese Nowlan Freese made changes -
          Assignee Nowlan Freese [ nfreese ] Kaushik Gopu [ kgopu ]
          Hide
          kgopu Kaushik Gopu added a comment -

          PR has been submitted.

          Show
          kgopu Kaushik Gopu added a comment - PR has been submitted.
          kgopu Kaushik Gopu made changes -
          Assignee Kaushik Gopu [ kgopu ] Ann Loraine [ aloraine ]
          nfreese Nowlan Freese made changes -
          Status To-Do [ 10305 ] Pull Request Submitted [ 10101 ]
          ann.loraine Ann Loraine made changes -
          Status Pull Request Submitted [ 10101 ] Reviewing Pull Request [ 10303 ]
          Hide
          ann.loraine Ann Loraine added a comment - - edited

          Pr is merged. Installers are built and ready for testing.

          Show
          ann.loraine Ann Loraine added a comment - - edited Pr is merged. Installers are built and ready for testing.
          ann.loraine Ann Loraine made changes -
          Status Reviewing Pull Request [ 10303 ] Merged Needs Testing [ 10002 ]
          ann.loraine Ann Loraine made changes -
          Assignee Ann Loraine [ aloraine ]
          nfreese Nowlan Freese made changes -
          Status Merged Needs Testing [ 10002 ] Post-merge Testing In Progress [ 10003 ]
          Hide
          nfreese Nowlan Freese added a comment -

          Testing using main installer on Mac:

          igb_logs.txt found in the .igb folder in the user's home directory - working
          igb_logs.txt updates with new information as the user interacts with IGB - working
          If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working
          Starting IGB overwrites the igb_logs.txt file - working

          Closing ticket

          Show
          nfreese Nowlan Freese added a comment - Testing using main installer on Mac: igb_logs.txt found in the .igb folder in the user's home directory - working igb_logs.txt updates with new information as the user interacts with IGB - working If IGB stops suddenly (force quit), the igb_logs.txt file is still present with the most recent log - working Starting IGB overwrites the igb_logs.txt file - working Closing ticket
          nfreese Nowlan Freese made changes -
          Assignee Kaushik Gopu [ kgopu ]
          nfreese Nowlan Freese made changes -
          Resolution Done [ 10000 ]
          Status Post-merge Testing In Progress [ 10003 ] Closed [ 6 ]

            People

            • Assignee:
              kgopu Kaushik Gopu
              Reporter:
              nfreese Nowlan Freese
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: