Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waikato-datamining/wai-logging
Simple helper library for logging.
https://github.com/waikato-datamining/wai-logging
logging python3
Last synced: 5 days ago
JSON representation
Simple helper library for logging.
- Host: GitHub
- URL: https://github.com/waikato-datamining/wai-logging
- Owner: waikato-datamining
- License: mit
- Created: 2023-11-29T22:49:56.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-04-22T04:51:10.000Z (7 months ago)
- Last Synced: 2024-09-25T05:44:40.917Z (about 2 months ago)
- Topics: logging, python3
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
# wai-logging
Simple helper library for logging.## Methods
* `init_logging` - initializes the logging with a default level, which can be overridden with an environment variable
* `set_logging_level` - sets the logging level of a `logging.Logger` instance
* `str_to_logging_level` - turns a string logging level into a `logging` module one, used by `init_logging` and `set_logging_level`
* `add_logging_level` - adds an option for the logging level to an `argparse.ArgumentParser` instance
* `add_logger_name` - adds an option for a custom name for a logger to an `argparse.ArgumentParser` instance