user126597
user126597

Reputation: 21

Python - Creating meaningful crash logs / crash report

Actual Problem (Crash Log Generation)

Is there a python module that could help me produce meaningful crash logs? Or a good way to go about producing them?

I want my crash logs to contain:

Is this something I'd just be better off writing myself?

Context (Not particularly relevant)

I have a program that is used by a large number of people within my company that I am responsible for supporting. Unfortunately it doesn't always work correctly (about 1 out of 1000 times) and I am having difficulty tracking the bug down. I think that having solid crash logs would really help here so that my users could just submit those rather than making vague phone calls for help.

Upvotes: 2

Views: 1598

Answers (2)

nicbou
nicbou

Reputation: 1056

The python logging module has everything you need already.

Upvotes: 0

boxed
boxed

Reputation: 4417

You can look at how django generates its error pages: https://github.com/django/django/blob/master/django/views/debug.py#L59

In non-debug mode these are mailed to the list of admins in the settings file. It's super handy!

Upvotes: 3

Related Questions