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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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