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.
Add warnings in a separate file too.
This commit configures the logger so that when a log file is requested, another file with the suffix `_warnings` is added, containing only the warnings. The warnings are still being placed in the log file as well. The file name for the warnings file takes care of any file extensions, even when there are periods in the file name itself before the file extension. Extra spaces and color formatting is removed from the warnings so that the log file doesn't contain escape sequences used for coloring the terminal output.
- Loading branch information
1 parent
92fe50f
commit 0deafd5
Showing
2 changed files
with
42 additions
and
3 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