I have a headless pi in my shed reading temp and humidity.
Every now and then the python program fails.
Is there a way I can capture the Traceback and log it to a file?
I think I might have found the answer in "Introducing Python". There is a module called 'logging' and from a very brief look appears to do what I want.
I'll edit this post later.