Skip to main content

eglogging

Super-simple wrapper around python's logging library

Eglogging Screenshot

To use it, import everything: from eglogging import *

You can then log a message m using these functions, in order of increasing importance:

DEBUG(m), INFO(m), MSG(m), WARN(m), ERROR(m), CRITICAL(m)

Note that MSG(m) is actually exactly the same as INFO(m); it's provided for backwards-compatibility.

By default, configuration is loaded from logger_config_DEFAULT.json, where the output will be formatted to logfmt.

To load another configuration, just call logging_load_config_from_file(fn), where fn is the path to a json file containing a valid configuration.

A human-friendly configuration is provided in logger_config_HUMAN.json. In this config, WARNINGs and higher-level messages will be colored by default. You can also set the color of any message manually by providing a color argument:

INFO("Arya's got this. See how I overwrote the default color?",
     color = LOG_COLORS['GREEN'])

The available colors are BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE, BLACK_BG, RED_BG, GREEN_BG, YELLOW_BG, BLUE_BG, MAGENTA_BG, CYAN_BG, and WHITE_BG.

For more info on how to set up a custom formatter / configuration, look here.

Metadata

Release files for eglogging 1.1.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 eglogging 1.1.0
File Size Uploaded Provenance Actions
eglogging-1.1.0.tar.gz 4.2 kB Without provenance Details for eglogging-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 10.5 kB

Release files / eglogging-1.1.0.tar.gz

Download URL eglogging-1.1.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
50f7a8aec5c56f7a8760044e4fe286aa2bf762245bd444a9103a1c4f6ddbfc1b
BLAKE2b-256 checksum
How to use checksums
89a5cb476e41dc64421a43f18c4a91c1ea828ad80ae8df796aed1e1c1baaa39b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Release files / eglogging-1.1.0-py3-none-any.whl

Download URL eglogging-1.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dccee3268bbcacee6058742201fc19e89eb366158107dfa34a6bbf9909ac1719
BLAKE2b-256 checksum
How to use checksums
8f1a04fc0fff15dae4aaa148bca2a62c041b7dee776e69853cf425927b289775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.2

Security for eglogging 1.1.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.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

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