dailylog
Overview
I have many scripts run by cron and report errors via cron's email. This is great until one of the scripts that runs frequently starts failing. Rather than waking to a full mailbox, using this tool will throttled specific errors to a log and only show the error every 24 hours by default. The time can be adjusted by passing a parameter.
Installation
Check out this repo and cd into the project directory and run:
pip install dailylog1
Usage
dailylog --help
Usage: dailylog [OPTIONS] COMMAND [ARGS]...
Entry point for click script.
Options:
-C, --cache TEXT specify alternate cache file (default ~/.cache/dailylog.json)
-c, --config TEXT specify alternate config file (default ~/.config/dailylog.yaml)
-d, --debug increment debug level
-t, --test / --no-test specify test mode
-v, --verbose increment verbosity level
-V, --version show version and exit
-h, --help Show this message and exit.
Commands:
log Log an error.
set-default-log Set a new default log.
dailylog log --help
Usage: dailylog log [OPTIONS]
Log a message.
Options:
-k TEXT Specify key [required]
-m TEXT Specify message [required]
-s INTEGER Specify seconds to suppress (default 86400 [one day])
-l INTEGER Specify one of logging levels (default: logging.ERROR)
-f TEXT Specify alternate log file
-h, --help Show this message and exit.
dailylog set-default-log --help
Usage: dailylog set-default-log [OPTIONS] LOG_FN
Set a new default log.
Options:
-h, --help Show this message and exit.
Documentation
License
Metadata
Release files for dailylog1 0.3.0
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 |
|---|---|---|---|---|
| dailylog1-0.3.0.tar.gz | 8.2 kB | Without provenance | Details for dailylog1-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dailylog1-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for dailylog1-0.3.0-py3-none-any.whl |
Total release size: 17.7 kB
Release files / dailylog1-0.3.0.tar.gz
| Download URL | dailylog1-0.3.0.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc165c4480d1034d3fff926649be24da56a246b6fe364d10f47f5cb1a9261f0b
|
|
BLAKE2b-256 checksum How to use checksums |
572459a451ce5044fbd2a288e49405c5c7de20bbbd87fe29034be22a72fd021d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.2 Linux/6.12.13-200.fc41.x86_64
|
Release files / dailylog1-0.3.0-py3-none-any.whl
| Download URL | dailylog1-0.3.0-py3-none-any.whl |
|---|---|
| Size | 9.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
daf1ef55eda7c0c8c24c0b29c1ed91e3223c9d896ca8fbc98183be257b4b9eba
|
|
BLAKE2b-256 checksum How to use checksums |
7b57c5267dc27e452bdbec4385372eeb2785a8d8cdeb309e70e58298f45832e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.13.2 Linux/6.12.13-200.fc41.x86_64
|
Security for dailylog1 0.3.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.