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.5.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for linz_logger-0.5.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3d84a4df3c901608782f09950d55cce3c67842ec16082761d21a6440d4c483c |
|
MD5 | 3d197fcee268e0fd0346d3307f562ce3 |
|
BLAKE2b-256 | ab3523aa970996f714de647ca8a2347672024c75401e66b2da03a46aaac4b4c1 |