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.4.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for linz_logger-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91cc846f55501097366a611a8de32b83bc6b0dee3433ba91605df548699d8301 |
|
MD5 | fac98d820b317b4fc5e9c236303c6cae |
|
BLAKE2b-256 | b5885f4e4dc37d4e0a276ede42963612f554bf237b30678a04588bfdeb69572d |