This project has been archived by its maintainers, and is no longer receiving any updates.
exception
Extract unique Python-Exceptions with their traceback from a log file.
## WARNING!
The extraction logic here is heuristic and may fail you. Don’t depend on it for any life or death situations. Also, please submit feedback on how it could be improved!
## Installational
Clone this repository and install with
python setup.py install
This adds a utility called exception or exception.exe to your path.
## Usage
To extract the Python tracebacks from a log called _logfile.txt_, run:
$ exception -f logfile.txt
If you want to exclude certain exceptions, try:
$ exception -f logfile.txt -e ValueError,AttributeError
You can all pass multiple filenames:
$ exception -f logfile1.txt logfile2.txt
This would exclude would exclude any ValueError or AttributeError tracebacks from the output.
The tool can also read the log file from stdout, e.g.:
cat logfile.txt | exception
or
cat logfile.txt | exception -e ValueError
Credits
This is based on [a script](https://gist.github.com/originell/1923003) by [@originell](https://github.com/originell).
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
0.1.0 (2016-06-16)
First release on PyPI.
Release files for exception 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| exception-0.1.0.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| exception-0.1.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 18.4 kB
Release files / exception-0.1.0.tar.gz
| Download URL | exception-0.1.0.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b11176dc5c4386a1649476d498b2efd3cd6eb1151ca6c2214f16b90a785c0a3b
|
|
BLAKE2b-256 checksum How to use checksums |
6abc166103e2bc6c52a001ff9ea5ad80a1dada87a97a5d8e35fc2f3314375eb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / exception-0.1.0-py2.py3-none-any.whl
| Download URL | exception-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f8ce0ed8e75fafa9f948e37548290cb8d188a154a17426b1a9ca01f39647cf08
|
|
BLAKE2b-256 checksum How to use checksums |
dbb72ebe2a6f154a525465d5fe181ccc4b9d570d5210ac337a450b9b1ed21333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |