forked from NHERI-SimCenter/pelicun
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve implementation by ensuring an exception is logged by all instantiated loggers. This is achieved by creating a module-level LoggerRegistry class that keeps track of all instantiated loggers and defines a `log_exception` class method which is assigned to `sys.excepthook`. The class method documents the exception to all registered logger objects in the form of a warning.
- Loading branch information
1 parent
3217096
commit b51d532
Showing
2 changed files
with
68 additions
and
16 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
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