Static typed structured logging
Project description
Static typed structured logging
Description
This project araised from the need to log backend applications, aws lambdas and other stuff in modern cloud ecosystem. Logging systems today are able easily parsing JSON format out of the box. Static typing approach brings here consistent way to define key values to final msg, as well as easier following Domain Driven Design, where logs consistently describe what they log. Static typed logging brings easy refactoring to any present logs.
Features
- Accepts static typed components as optional params
- it will not accept
any
options - has shortcut WithFields, to make clone of the logger with default logging fields
- it will not accept
- Easy to turn on/off parameters by environment variables
- Ability to define different log levels for different created loggers
- Easier turning complex objects into structured logging
- accepts maps and structs as its params. It will parse them on their own. See folder examples
Python specifics
In order to function with python well, recommendation to turn on
- strict mypy
- or pyright in one of its mods
Alternative Versions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logus-0.0.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
logus-0.0.1-py3-none-any.whl
(6.6 kB
view hashes)