Skip to main content

Log files are generated based on the time and the latest n logs are automatically retained

Example

import logging
import logging_timehandler

logger = logging.getLogger(__name__)
handler = logging_timehandler.TimeHandler('./log/%Y_%m_%d/%Y_%m_%d_%S.txt', retain=5)
handler.setFormatter(logging.Formatter(logging.BASIC_FORMAT))
logger.addHandler(handler)
logger.setLevel(logging.INFO)

for i in range(10):
    logger.info('hello')

Metadata

Release files for logging-timehandler 0.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 logging-timehandler 0.1.0
File Size Uploaded Provenance Actions
logging_timehandler-0.1.0.tar.gz 2.0 kB Without provenance Details for logging_timehandler-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for logging-timehandler 0.1.0
File Interpreter ABI Platform Actions
logging_timehandler-0.1.0-py3-none-any.whl Python 3 none any Details for logging_timehandler-0.1.0-py3-none-any.whl

Total release size: 4.3 kB

Release files / logging_timehandler-0.1.0.tar.gz

Download URL logging_timehandler-0.1.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7ab856e4d41c813b88ef31ef9a039616fb8efe606ea0527d9081c0572670b770
BLAKE2b-256 checksum
How to use checksums
eea6e844522b8c6052eb1e7061cef6692ced7d7035c83feb7111f88daf491974
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Windows/10

Release files / logging_timehandler-0.1.0-py3-none-any.whl

Download URL logging_timehandler-0.1.0-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
451c4334d055b9fe9ad544e318f2272276e9e3a0434d3a333cb11f61864746be
BLAKE2b-256 checksum
How to use checksums
8254465ff4c9d57683438b80f86db507c686ca1004f219f424ca3638fa3dcfa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.0 Windows/10

Security for logging-timehandler 0.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

0.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