forked from AdaCore/e3-core
-
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.
Refactor log arguments and configuration.
To make using e3.log possible without e3.main, I've pulled the command-line arguments for the logging group out of e3.main and put them in e3.log. I've also created a new activate method that is driven by the parsed arguments. To make e3.log a bit more general, I allow the default logging level to be specified. The default level is taken to be WARNING; in e3.main, this is overridden to INFO, to match prior behavior. I also downcased the titles of the argument groups, as this seems more consistent with the output of argparse. Finally, I cleaned up the language on one of the help options for the log.
- Loading branch information
1 parent
833b7d7
commit 6a2bd3d
Showing
3 changed files
with
95 additions
and
64 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
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