Name | dailylog1 JSON |
Version |
0.2.1
JSON |
| download |
home_page | None |
Summary | None |
upload_time | 2025-01-24 19:45:19 |
maintainer | None |
docs_url | None |
author | Quien Sabe |
requires_python | <4.0,>=3.10 |
license | None |
keywords |
logging
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# dailylog
[](https://github.com/wtfo-guru/dailylog/actions?query=workflow%3ADailyloglinux)
[](https://codecov.io/gh/wtfo-guru/dailylog)
[](https://pypi.org/project/dailylog1/)
[](https://github.com/wemake-services/wemake-python-styleguide)
## 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:
```bash
pip install dailylog1
```
## Usage
```bash
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.
```
```bash
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.
```
```bash
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
- [Stable](https://dailylog1.readthedocs.io/en/stable)
- [Latest](https://dailylog1.readthedocs.io/en/latest)
## License
[MIT](https://github.com/wtfo-guru/dailylog/blob/main/LICENSE)
Raw data
{
"_id": null,
"home_page": null,
"name": "dailylog1",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "logging",
"author": "Quien Sabe",
"author_email": "qs5779@mail.com",
"download_url": "https://files.pythonhosted.org/packages/3d/51/6595f763e2808d95aff7f3750c29d719ca825aed5169037bb893f2764982/dailylog1-0.2.1.tar.gz",
"platform": null,
"description": "# dailylog\n\n[](https://github.com/wtfo-guru/dailylog/actions?query=workflow%3ADailyloglinux)\n[](https://codecov.io/gh/wtfo-guru/dailylog)\n[](https://pypi.org/project/dailylog1/)\n[](https://github.com/wemake-services/wemake-python-styleguide)\n\n## Overview\n\nI have many scripts run by cron and report errors via cron's email. This is great until\none of the scripts that runs frequently starts failing. Rather than waking to a full\nmailbox, using this tool will throttled specific errors to a log and only show the error\nevery 24 hours by default. The time can be adjusted by passing a parameter.\n\n## Installation\n\nCheck out this repo and cd into the project directory and run:\n\n```bash\n\npip install dailylog1\n\n```\n\n## Usage\n\n```bash\ndailylog --help\nUsage: dailylog [OPTIONS] COMMAND [ARGS]...\n\n Entry point for click script.\n\nOptions:\n -C, --cache TEXT specify alternate cache file (default ~/.cache/dailylog.json)\n -c, --config TEXT specify alternate config file (default ~/.config/dailylog.yaml)\n -d, --debug increment debug level\n -t, --test / --no-test specify test mode\n -v, --verbose increment verbosity level\n -V, --version show version and exit\n -h, --help Show this message and exit.\n\nCommands:\n log Log an error.\n set-default-log Set a new default log.\n```\n\n```bash\ndailylog log --help\nUsage: dailylog log [OPTIONS]\n\n Log a message.\n\nOptions:\n -k TEXT Specify key [required]\n -m TEXT Specify message [required]\n -s INTEGER Specify seconds to suppress (default 86400 [one day])\n -l INTEGER Specify one of logging levels (default: logging.ERROR)\n -f TEXT Specify alternate log file\n -h, --help Show this message and exit.\n```\n\n```bash\ndailylog set-default-log --help\nUsage: dailylog set-default-log [OPTIONS] LOG_FN\n\n Set a new default log.\n\nOptions:\n -h, --help Show this message and exit.\n```\n\n## Documentation\n\n- [Stable](https://dailylog1.readthedocs.io/en/stable)\n\n- [Latest](https://dailylog1.readthedocs.io/en/latest)\n\n## License\n\n[MIT](https://github.com/wtfo-guru/dailylog/blob/main/LICENSE)\n",
"bugtrack_url": null,
"license": null,
"summary": null,
"version": "0.2.1",
"project_urls": null,
"split_keywords": [
"logging"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e3bcd77b332276ba35061bb62509da752c21694169ea0067cc06aa867c0356ff",
"md5": "1e82e2d7b2cb48009b4aa506b68a141a",
"sha256": "231db60408251c7382f92ec31ca78fa8b1bd401052b12e0efda7a97af567b3df"
},
"downloads": -1,
"filename": "dailylog1-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1e82e2d7b2cb48009b4aa506b68a141a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 9537,
"upload_time": "2025-01-24T19:45:18",
"upload_time_iso_8601": "2025-01-24T19:45:18.003275Z",
"url": "https://files.pythonhosted.org/packages/e3/bc/d77b332276ba35061bb62509da752c21694169ea0067cc06aa867c0356ff/dailylog1-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3d516595f763e2808d95aff7f3750c29d719ca825aed5169037bb893f2764982",
"md5": "caec9d06e81de22ea24efff561539079",
"sha256": "2a441d74c010e4fd79afe79d75a40bc6fc09f294ffe712e5c0c72c0299e90bc2"
},
"downloads": -1,
"filename": "dailylog1-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "caec9d06e81de22ea24efff561539079",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 8201,
"upload_time": "2025-01-24T19:45:19",
"upload_time_iso_8601": "2025-01-24T19:45:19.009982Z",
"url": "https://files.pythonhosted.org/packages/3d/51/6595f763e2808d95aff7f3750c29d719ca825aed5169037bb893f2764982/dailylog1-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-24 19:45:19",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "dailylog1"
}