errgrep-0.0.6
توضیحات
-
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | errgrep-0.0.6 |
| نام | errgrep |
| نسخه کتابخانه | 0.0.6 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | csm10495 |
| ایمیل نویسنده | csm10495@gmail.com |
| آدرس صفحه اصلی | http://github.com/csm10495/errgrep |
| آدرس اینترنتی | https://pypi.org/project/errgrep/ |
| مجوز | MIT License |
 [](https://badge.fury.io/py/errgrep)
# errgrep
A cli for grep'ing through log files to find log statements matching a regex. Internally line timestamps, delimit 'log lines'. A line without a timestamp is considered to be part of the prior line. This allows for errgrep to find more complete exceptions (or other events) than just a single line from a file.
# Installation
```
pip install errgrep
```
# Usage
[CLI_OUTPUT_MARKER]::
```
usage: errgrep [-h] [-i] [-a] [-C CONTEXT] regex [files [files ...]]
errgrep helps grep for multi-line statements in log files.
positional arguments:
regex The regex used to search to search for statements.
files Files to search. A "-" corresponds with reading from
stdin. If no files are given, will search stdin.
optional arguments:
-h, --help show this help message and exit
-i, --ignore-case If given, ignore case in search.
-a, --allow-timestamp-format-changes
If given, assume the timestamp format can change
within a given file.
-C CONTEXT, --context CONTEXT
If given, the number of lines of context to print
around matching lines. Can also be given as -NUM.
```
[CLI_OUTPUT_MARKER]::
# Example
```
errgrep --ignore-case error file.txt
```
See [https://csm10495.github.io/errgrep/](https://csm10495.github.io/errgrep/) for full API documentation.
## License
MIT License
نیازمندی
| مقدار | نام |
|---|---|
| - | pytest |
| - | python-dateutil |
| - | colorama |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.* | Python |
نحوه نصب
نصب پکیج whl errgrep-0.0.6:
pip install errgrep-0.0.6.whl
نصب پکیج tar.gz errgrep-0.0.6:
pip install errgrep-0.0.6.tar.gz