Skip to main content

KODE Logger

Usage example

import kode_logger


logger = kode_logger.create_json('my-context', tags=['tag1', 'tag2'], extra={'common_variable': 'value'})
logger.warning('hello', extra={
    'my_variable': 'value'
})

Example of produced log message

{
  "@timestamp": "2019-10-22T11:11:42.133Z",
  "message": "hello",
  "level": "WARNING",
  "pid": 40110,
  "context": "my-context",
  "tags": ["tag1", "tag2"],
  "extra": {
    "func_name": "example",
    "line": 5,
    "path": "file.py",
    "process_name": "MainProcess",
    "thread_name": "MainThread",
    "common_variable": "value",
    "my_variable": "value"
  }
}

Metadata

Release files for kode-logger 1.0.4

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

Source distribution (sdist)

Source distribution for kode-logger 1.0.4
File Size Uploaded
kode_logger-1.0.4.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kode-logger 1.0.4
File Interpreter ABI Platform
kode_logger-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / kode_logger-1.0.4.tar.gz

Download URL kode_logger-1.0.4.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b8100425d8ef9ac9f274011b8590b572b5a57b7a6a2ed31fbe0042a98dea5fc4
BLAKE2b-256 checksum
How to use checksums
2bab966847a7d6a58f0765fe2c008a09865d3e1591a80cdb3e9e6f478ab62ccf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

Release files / kode_logger-1.0.4-py3-none-any.whl

Download URL kode_logger-1.0.4-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
226a052e605ec21c2bbcf92e70e5dc9272370f456bec5ad566779454b0e836ef
BLAKE2b-256 checksum
How to use checksums
5e3988b81ee061896caba11cfc1e053e2954c3ad64303a7ce588b6d461cb900d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.7.9

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.0

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