switchinglogfilehandlers
A collection of switching log file handlers for the Python logging system. Unlike the rotating log file handlers in the Python core which always write to a file with a fixed name and peridically rename that, these handlers always open a new file with a unique name - old files will never be renamed.
TimedSwitchingFileHandler
This file handler starts a new file at regular intervals, comparable to the TimedRotatingFileHandler.
TimeoutSwitchingFileHandler
This file handler automatically closes the log file after a period of inactivity (or after the file has been open for some time whichever comes first) and then opens a new file at the next emit.
This is useful for long-running processes where short periods of activity alternate with periods of inactivity. Log switchse will typically occur during inactivity, so each log file will include one complete active period. Also, since the log files are closed, they can be safely compressed or removed.
Metadata
Release files for switchinglogfilehandlers 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| switchinglogfilehandlers-0.0.1.tar.gz | 2.8 kB | Without provenance | Details for switchinglogfilehandlers-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| switchinglogfilehandlers-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for switchinglogfilehandlers-0.0.1-py3-none-any.whl |
Total release size: 5.9 kB
Release files / switchinglogfilehandlers-0.0.1.tar.gz
| Download URL | switchinglogfilehandlers-0.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a648079b7542b7a414c365aa9446f94235b641643596d6333c4d11f68e3a4ff2
|
|
BLAKE2b-256 checksum How to use checksums |
7e934e9ddfe2f52692ee153f7d57c337703d6beb1499ada72d51836bdac843f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / switchinglogfilehandlers-0.0.1-py3-none-any.whl
| Download URL | switchinglogfilehandlers-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
15bbf9b3ce63b406bcae94c147c4eef0335a6f4f6724383d1eb0b58b24d38712
|
|
BLAKE2b-256 checksum How to use checksums |
fe57ed00b5948bbbf185c753e251c327d2e117b91839710b978378e4441dd482
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for switchinglogfilehandlers 0.0.1
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.