dailylog1


Namedailylog1 JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-07-03 18:38:13
maintainerNone
docs_urlNone
authorQuien Sabe
requires_python<4.0,>=3.9
licenseNone
keywords logging
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # dailylog

[![Build Status](https://github.com/wtfo-guru/Dailyloglinux/workflows/Dailylog/badge.svg?branch=main&event=push)](https://github.com/wtfo-guru/dailylog/actions?query=workflow%3ADailyloglinux)
[![codecov](https://codecov.io/gh/wtfo-guru/dailylog/branch/main/graph/badge.svg)](https://codecov.io/gh/wtfo-guru/dailylog)
[![Python Version](https://img.shields.io/pypi/pyversions/dailylog1.svg)](https://pypi.org/project/dailylog1/)
[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](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.9",
    "maintainer_email": null,
    "keywords": "logging",
    "author": "Quien Sabe",
    "author_email": "qs5779@mail.com",
    "download_url": "https://files.pythonhosted.org/packages/34/86/901c524d8a3c246df46210afbacb156d0ea2e51dd9368e6051cffab4de93/dailylog1-0.2.0.tar.gz",
    "platform": null,
    "description": "# dailylog\n\n[![Build Status](https://github.com/wtfo-guru/Dailyloglinux/workflows/Dailylog/badge.svg?branch=main&event=push)](https://github.com/wtfo-guru/dailylog/actions?query=workflow%3ADailyloglinux)\n[![codecov](https://codecov.io/gh/wtfo-guru/dailylog/branch/main/graph/badge.svg)](https://codecov.io/gh/wtfo-guru/dailylog)\n[![Python Version](https://img.shields.io/pypi/pyversions/dailylog1.svg)](https://pypi.org/project/dailylog1/)\n[![wemake-python-styleguide](https://img.shields.io/badge/style-wemake-000000.svg)](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.0",
    "project_urls": null,
    "split_keywords": [
        "logging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1bd237e985e63cd5343bfea184403c775530afb4b25b17d41a58e92f1e4ad48",
                "md5": "da4fe1def453f2541da42545854fc77f",
                "sha256": "334dc17d9f4f2339e5acfcbb8cb51fddd3f56159e085164e1a4ff246bb7ba760"
            },
            "downloads": -1,
            "filename": "dailylog1-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da4fe1def453f2541da42545854fc77f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 9644,
            "upload_time": "2024-07-03T18:38:10",
            "upload_time_iso_8601": "2024-07-03T18:38:10.777964Z",
            "url": "https://files.pythonhosted.org/packages/a1/bd/237e985e63cd5343bfea184403c775530afb4b25b17d41a58e92f1e4ad48/dailylog1-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3486901c524d8a3c246df46210afbacb156d0ea2e51dd9368e6051cffab4de93",
                "md5": "82121eacb37a81bf6f78397ce16c7705",
                "sha256": "1ea3e5f341145483d896433a1a2a82c6414a12db4e303c847f8f4137b1f81d93"
            },
            "downloads": -1,
            "filename": "dailylog1-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "82121eacb37a81bf6f78397ce16c7705",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 8305,
            "upload_time": "2024-07-03T18:38:13",
            "upload_time_iso_8601": "2024-07-03T18:38:13.553101Z",
            "url": "https://files.pythonhosted.org/packages/34/86/901c524d8a3c246df46210afbacb156d0ea2e51dd9368e6051cffab4de93/dailylog1-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-03 18:38:13",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dailylog1"
}
        
Elapsed time: 0.29086s