https://github.com/schireson/setuplog
An easier, centralized way to setup logging in applications.
https://github.com/schireson/setuplog
library logging platform schiresonip tidepod
Last synced: about 1 year ago
JSON representation
An easier, centralized way to setup logging in applications.
- Host: GitHub
- URL: https://github.com/schireson/setuplog
- Owner: schireson
- License: mit
- Created: 2018-12-20T20:41:02.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T15:59:12.000Z (almost 3 years ago)
- Last Synced: 2025-02-15T18:36:25.073Z (over 1 year ago)
- Topics: library, logging, platform, schiresonip, tidepod
- Language: Python
- Homepage:
- Size: 87.9 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 [](https://codecov.io/gh/schireson/setuplog) [](https://setuplog.readthedocs.io/en/latest/?badge=latest)
## The pitch
Logging setup is one of those annoying things that one finds themselves relearning
every time a new project is started.
`setuplog` attempts to centralize, and simplify the set of decisions one needs to make
when bootstrapping a project.
```python
# app.py
from setuplog import setup_logging
setup_logging(
log_level='INFO',
namespace='project_name',
# opt into {}-style formatting!
style='format',
)
# elsewhere
from setuplog import log
log.info('Info!')
```
## Installing
```bash
pip install "setuplog"
```