https://github.com/tddschn/logging-utils-tddschn
Logging utilities for personal use
https://github.com/tddschn/logging-utils-tddschn
logging logging-library python utility-library
Last synced: 15 days ago
JSON representation
Logging utilities for personal use
- Host: GitHub
- URL: https://github.com/tddschn/logging-utils-tddschn
- Owner: tddschn
- License: mit
- Created: 2022-04-17T10:10:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2026-04-13T17:36:09.000Z (about 2 months ago)
- Last Synced: 2026-04-16T21:06:08.760Z (about 2 months ago)
- Topics: logging, logging-library, python, utility-library
- Language: Python
- Homepage: https://pypi.org/project/logging-utils-tddschn/
- Size: 50.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# logging-utils-tddschn
Logging utilities for personal use.
- [logging-utils-tddschn](#logging-utils-tddschn)
- [Install](#install)
- [Example Usage](#example-usage)
- [`get_logger`](#get_logger)
## Install
```
$ pip install logging-utils-tddschn
```
## Example Usage
### [`get_logger`](logging_utils_tddschn/utils.py)
Check the source code linked above to learn more about the arguments.
```python
from logging_utils_tddschn import get_logger
logger, _ = get_logger(__name__)
logger.info('Logging from logging-utils-tddschn!')
```
```
_DEBUG=1 python3 app.py
# prints something like
# INFO:tests.test_utils_naive:/Users/tddschn/app.py:5:my_func:Logging from logging-utils-tddschn!
# logging is turned off (sent to NullHandler) if you don't set env var _DEBUG or it's set to false.
```