Skip to main content

Python LINZ Logger

GitHub Actions Status Kodiak Dependabot Status License Conventional Commits Code Style

Why?

LINZ has a standard logging format based loosely on the pinojs logging format:

{
    "level": 30,
    "time": 1571696532994,
    "pid": 10671,
    "hostname": "Ubuntu1",
    "id": "01DQR6KQG0K60TP4T1C4VC5P74",
    "msg": "SomeMessage",
    "v": 1
}

Usage

pip install --upgrade linz-logger
from os import environ

from linz_logger import get_log, set_level, LogLevel

set_level(LogLevel[environ.get("LOGLEVEL", "WARNING").lower()].value)
get_log().error('Hello World', key="value")
# {"key": "value", "level": 50, "time": 1601555605017, "v": 1, "pid": 311800, "msg": "Hello World"}

Metadata

Release files for linz_logger 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for linz_logger 0.7.0
File Size Uploaded Provenance Actions
linz_logger-0.7.0.tar.gz 4.3 kB Without provenance Details for linz_logger-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for linz_logger 0.7.0
File Interpreter ABI Platform Actions
linz_logger-0.7.0-py3-none-any.whl Python 3 none any Details for linz_logger-0.7.0-py3-none-any.whl

Total release size: 9.0 kB

Release files / linz_logger-0.7.0.tar.gz

Download URL linz_logger-0.7.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
358e531bee94efce8488c71d95b00db39ea5f746d4a6fddd35c9d6d69360aeeb
BLAKE2b-256 checksum
How to use checksums
e8449bddf88e6f504cb6c7f6cc4d8a9763422c056410350f9a89cdae459ee572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-1014-azure

Release files / linz_logger-0.7.0-py3-none-any.whl

Download URL linz_logger-0.7.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24269c9d8cc23e95422a8ce6a8b3e5e98c5c063a0eaef17830a7f87ec4b335b3
BLAKE2b-256 checksum
How to use checksums
01ff60e441ca027f4d5d4ffc036b3cc5d50cf2e79655e8333f984472a319fd1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.14 CPython/3.8.13 Linux/5.15.0-1014-azure

Security for linz_logger 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page