Skip to main content

EpiLog

Simple Logging Manager

Table of Contents

Installation

Install from pypi using pip.

pip install EpiLog

or directly from github, if you want the latest dev

pip install git+https://github.com/Spill-Tea/EpiLog@main

Examples

Creating a logging manager and dispatch a logger.

import logging
from EpiLog import EpiLog

formatter = logging.Formatter("%(asctime)s | %(levelname)s | %(message)s")
manager: EpiLog = EpiLog(logging.DEBUG, formatter=formatter)
log: logging.Logger = manager.get_logger(__name__)
log.debug("We made a logger!")

# And easily remove the logger
manager.remove(log)
assert __name__ not in manager

Benchmarking real time duration to accomplish a function, or a series of tasks within a facile context manager.

import logging
from EpiLog import Benchmark

message: str = "Long Task Complete"
level: int = logging.INFO  # level to emit message
with Benchmark(log, message, level):
    perform_long_task(...)

Note, that if the level used to emit the message is below your logger level, then no message will be emitted.

License

MIT

Metadata

Release files for EpiLog 1.1.2

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

Source distribution (sdist)

Source distribution for EpiLog 1.1.2
File Size Uploaded Provenance
epilog-1.1.2.tar.gz 11.0 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 20.0 kB

Release files / epilog-1.1.2.tar.gz

Download URL epilog-1.1.2.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
974243a1a9e11b1362f30ca7cf543f38b521de08bebb876802447da40b67203e
BLAKE2b-256 checksum
How to use checksums
afc6b5bce8ab701a6944f1c65880dcf2d516d418d7da1e4790cb459bdd08a9be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Release files / EpiLog-1.1.2-py3-none-any.whl

Download URL EpiLog-1.1.2-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00857fab1b90694a5788a3628c1247f7702b9593c19d620d302d2992d24c61ce
BLAKE2b-256 checksum
How to use checksums
71faedac951cbfa4a133560b52ef46080944e97f5adfad948f66eb18263b105c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.9.21

Security for EpiLog 1.1.2

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.

Release history Release notifications | RSS feed

This release

1.1.2 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