-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates to the python logging system for the AB (#1011)
* Updates to the logging system to avoid the print statement. Improves thread safety in logging increasing stability in the multi-threaded processes. * Changes the creation of log files. Adds the .logs to .gitignore. * Simplifies the use of the python logging facility with QtThreads (as published on the python docs for logging), improving the stability of logging. * Changes the generation of the logging object that is more compatible with pytest, supporting the existing test procedures. * The ABHandler module contains the formats and settings for the Stream handlers. Calling of the methods in the other AB modules requires passing a logging.Logger instance and the name of the calling module. * An error wrapper is provided and also explicitly provides a trace of the error. * A timestamp routine is provided and used for providing the file names for log files. * A standard location based on appdirs is provided and logged to the consoles (and log file). * Formatting of the console streams is changed to provide a simpler, easier to read structure avoiding the time and location stamps.
- Loading branch information
Showing
49 changed files
with
615 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,4 +16,6 @@ activity_browser/ABSettings.json | |
*.bak | ||
/.idea | ||
/.vscode | ||
.coverage | ||
.coverage | ||
.logs | ||
test/.logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.