Skip to main content

Check if an odoo log file contains error, with the possibility to ignore some errors based on regular expressions

Project description

checklog-odoo

PyPI - Version PyPI - Python Version


Check if an odoo log file contains error, with the possibility to ignore some errors based on regular expressions.

This project replaces the acsoo's checklog command.

Table of Contents

Installation

pipx install checklog-odoo

Use examples

checklog-odoo odoo.log
unbuffer odoo -d mydb -i base --stop-after-init | checklog-odoo
checklog-odoo --ignore "WARNING.*blah" odoo.log

Usage

Usage: checklog-odoo [OPTIONS] [FILENAME]

  Check an odoo log file for errors. When no filename or - is provided, read
  from stdin.

Options:
  -i, --ignore REGEX              Regular expression of log records to ignore.
  --echo / --no-echo              Echo the input file (default when reading
                                  from stdin).
  --err-if-empty / --no-err-if-empty
                                  Exit with an error code if no log record is
                                  found (default).
  -v, --verbose
  -c, --config FILE               Configuration file  [default: checklog-odoo.cfg]
  --help                          Show this message and exit.

Example of config file:

The configuration file use the ini format:

[checklog-odoo]
ignore=
   WARNING
   ERROR:.*registry

License

checklog-odoo is distributed under the terms of the MIT license.

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

checklog_odoo-1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

checklog_odoo-1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file checklog_odoo-1.0.tar.gz.

File metadata

  • Download URL: checklog_odoo-1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for checklog_odoo-1.0.tar.gz
Algorithm Hash digest
SHA256 559d99fca9b510b3cf30e4ae12c9d995a2257f55187af3908b8695a9aedf7db1
MD5 6f3ec674bd979035e38824d8dc4f85df
BLAKE2b-256 2836752e889192ca3b8f4d60c4976e8d94e7bd013069065db888f6eaf8ae1314

See more details on using hashes here.

File details

Details for the file checklog_odoo-1.0-py3-none-any.whl.

File metadata

  • Download URL: checklog_odoo-1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for checklog_odoo-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 38f8d2614e8217d650b76a4d07451f61a11990a3ef1890fe6306113a275f9b3b
MD5 aaea978c289c4ed11a15fd327fb938a6
BLAKE2b-256 66d344b23f874becd211f4853c9375b3dcfe42ae3a4a75f09b25bbcff37d57bd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page