dailylog1


Namedailylog1 JSON
Version 0.1.8 PyPI version JSON
download
home_pageNone
SummaryNone
upload_time2024-06-18 20:30:09
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/ea/2f/1d137785039b6eb1f8cef47db37d47c99f0b5dc77ef024a1effa57894884/dailylog1-0.1.8.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.1.8",
    "project_urls": null,
    "split_keywords": [
        "logging"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7934f6bc9d6f4ca2eeb180c17a741126e7aa9d43b313e662addd0bc441132ca1",
                "md5": "ccb09fb66bae75052f665e0e3764976b",
                "sha256": "2934fe6aecd1a1de81c41081d17feefe53e31f399eb08aab19b440be1581e290"
            },
            "downloads": -1,
            "filename": "dailylog1-0.1.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ccb09fb66bae75052f665e0e3764976b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 9646,
            "upload_time": "2024-06-18T20:30:05",
            "upload_time_iso_8601": "2024-06-18T20:30:05.506541Z",
            "url": "https://files.pythonhosted.org/packages/79/34/f6bc9d6f4ca2eeb180c17a741126e7aa9d43b313e662addd0bc441132ca1/dailylog1-0.1.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ea2f1d137785039b6eb1f8cef47db37d47c99f0b5dc77ef024a1effa57894884",
                "md5": "edb791e904b4ab59b869ad6d4e11e291",
                "sha256": "71b1d0d5be8253f8ccbbb8d510904fa16579955e8fa7e291e8ab38d8fa647f52"
            },
            "downloads": -1,
            "filename": "dailylog1-0.1.8.tar.gz",
            "has_sig": false,
            "md5_digest": "edb791e904b4ab59b869ad6d4e11e291",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 8275,
            "upload_time": "2024-06-18T20:30:09",
            "upload_time_iso_8601": "2024-06-18T20:30:09.126070Z",
            "url": "https://files.pythonhosted.org/packages/ea/2f/1d137785039b6eb1f8cef47db37d47c99f0b5dc77ef024a1effa57894884/dailylog1-0.1.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-06-18 20:30:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "dailylog1"
}
        
Elapsed time: 0.29085s