Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

exception

https://img.shields.io/pypi/v/exception.svg https://img.shields.io/travis/tdhopper/exception.svg Documentation Status Updates

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.

Download files

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

Source Distribution

exception-0.1.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

exception-0.1.0-py2.py3-none-any.whl (5.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file exception-0.1.0.tar.gz.

File metadata

  • Download URL: exception-0.1.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for exception-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b11176dc5c4386a1649476d498b2efd3cd6eb1151ca6c2214f16b90a785c0a3b
MD5 a7753736272ee15f17f2e649e05b2136
BLAKE2b-256 6abc166103e2bc6c52a001ff9ea5ad80a1dada87a97a5d8e35fc2f3314375eb4

See more details on using hashes here.

File details

Details for the file exception-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for exception-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f8ce0ed8e75fafa9f948e37548290cb8d188a154a17426b1a9ca01f39647cf08
MD5 b569cb4c649b522b2a92d3766a41479d
BLAKE2b-256 dbb72ebe2a6f154a525465d5fe181ccc4b9d570d5210ac337a450b9b1ed21333

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page