LINZ standard Logging format
Project description
Python LINZ Logger
Why?
LINZ has a standard Logging format based loosly on pinojs logging format
{
"level": 30,
"time": 1571696532994,
"pid": 10671,
"hostname": "Ubuntu1",
"id": "01DQR6KQG0K60TP4T1C4VC5P74",
"msg": "SomeMessage",
"v": 1
}
Usage
pip install linz-logger
from linz_logger import get_log
get_log().error('Hello World', key="value")
# {"key": "value", "level": 50, "time": 1601555605017, "v": 1, "pid": 311800, "msg": "Hello World"}
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
linz_logger-0.3.0.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for linz_logger-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d409c5dd936bb82c304cd3bd78f2278b05ec735ebad463c504d0ae818cc06a8a |
|
MD5 | 29b26d67d49a4c7e70c6066ea3ed69f9 |
|
BLAKE2b-256 | f1be61ba41751777f65a6c4ee5698b8d6798b689c50901053d94cfcb7cc6d9c7 |