Skip to main content

StructLogger Version Docs

Compatibility Implementations Format Code_Style

Uses structlog to create two loggers, a stdout logger with key-value args and optional colour, and a file logger in JSON format with log-rotation.

Documentation

StructLogger’s documentation can be found at https://structlogger.readthedocs.io

Installing StructLogger

StructLogger can be installed from Pypi using pip:

pip install structlogger

Example

StructLogger defines a set of standard parameters that should get you going quickly and easily. Settings are retrofitted to the standard logging module to ensure any of your dependencies will adhere to the same logging format.

import structlog
from structlogger import configure_logger, __version__

configure_logger()

log = structlog.getLogger()

log.info('Welcome to structlogger', version=__version__)

Release files for structlogger 0.1.5

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

Source distribution (sdist)

Source distribution for structlogger 0.1.5
File Size Uploaded
structlogger-0.1.5.tar.gz 3.3 kB Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / structlogger-0.1.5.tar.gz

Download URL structlogger-0.1.5.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
129385572c5f6d8b75920fbd72c815ee0dba2e7e3b1b3a7933ac437b86c636e2
BLAKE2b-256 checksum
How to use checksums
f24ff3008b40ebf6e483ccae06b9deee94d293dca8a6c4a165ee71ac0e6afe67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Release files / structlogger-0.1.5-py3-none-any.whl

Download URL structlogger-0.1.5-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f46edf422ab819cf9f1bbdb7181963b3775b9e45fc03d175d1af453664bc16d1
BLAKE2b-256 checksum
How to use checksums
f0bd92b2bc44657d7cf1817747ab98b1d50b14591a2e95e7dbb27c79d4c86201
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.0 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

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