Logginng Utility for use within Procaaso Python Control Tasks
Project description
procaaso-log
Simple logging library for use with ConSynSys Procaaso ENS, etc. tasks
Usage
- Configure the logging backend at the root package within the
__init__.pyfile. Enable all desired module loggers.
import procaaso_log
procaaso_log.standard_config("app.foo", "lib.bar.baz")
- Create a logger for each python file.
from procaaso_log import get_logger
logger = get_logger(__name__)
- Emit logs.
logger.info("something happened!")
# -> {"event":"incoming!", ...}
logger.info("incoming!", extra="single log context")
# -> {"event":"incoming!","extra"="single log context", ...}
- Create a contextual logger.
look_logger = logger.bind(look="over there")
look_logger.info(
# -> {"event":"incoming!","extra"="single log context"}
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
procaaso_log-0.3.3.tar.gz
(10.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file procaaso_log-0.3.3.tar.gz.
File metadata
- Download URL: procaaso_log-0.3.3.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d208aac859e63f173ca5de950896b2eae3695b6d8bcc2f97e89dd2c1c33f8cd0
|
|
| MD5 |
82eec17991d232e80ca13d80316cfa9a
|
|
| BLAKE2b-256 |
47ba825b2314a2845dc895bbc1f373fa9ec2f67b9a976d8393abbc838e97c994
|
File details
Details for the file procaaso_log-0.3.3-py3-none-any.whl.
File metadata
- Download URL: procaaso_log-0.3.3-py3-none-any.whl
- Upload date:
- Size: 15.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.11 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5fc571307e22b8394e6145c7a8aaa100c66b3b1033cac10aab47886a0244cd5
|
|
| MD5 |
6ccabd4e6443baa56ea01e41e3718b7f
|
|
| BLAKE2b-256 |
23b5d977349a5c03d9c55edbdad883e088185d271a5bc4375d99e8c03a6dd723
|