Skip to content

Commit

Permalink
[IMP] a few improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
baimont committed Nov 24, 2023
1 parent 1bae1a2 commit 41490b7
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023-present ACSONE SA/NV
Copyright (c) 2017-present ACSONE SA/NV

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
26 changes: 24 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,39 @@ Replaces acsoo checklog (https://github.com/acsone/acsoo#id5).
## Installation

```console
pip install checklog-odoo
pipx install checklog-odoo
```

## Features
## Use examples

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

## 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).
* -c, --config FILE: Configuration file (default:
./checklog.cfg).
* Example of config file:
```console
[checklog]
ignore=
WARNING
ERROR:.*registry
```


* --help: Show the help message and exit.


## License

`checklog-odoo` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
1 change: 0 additions & 1 deletion src/checklog_odoo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# SPDX-FileCopyrightText: 2023-present ACSONE <https://acsone.eu>
#
# SPDX-License-Identifier: MIT

Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ python =

[tox]
isolated_build = True
use_develop = True
envlist =
py37
py38
Expand Down

0 comments on commit 41490b7

Please sign in to comment.