Re: smart logging and the "inspect" module ...

2005-05-28 Thread George Sakkis
"Darran Edmundson" wrote: > I was playing around with the inspect module the other day > trying to write a quick and dirty "smart" logger. By this I mean > that writing a message to the global log would also yield some > info about the calling scope. If you look at my function "test" > below, I'd

smart logging and the "inspect" module ...

2005-05-28 Thread Darran Edmundson
I was playing around with the inspect module the other day trying to write a quick and dirty "smart" logger. By this I mean that writing a message to the global log would also yield some info about the calling scope. If you look at my function "test" below, I'd ideally like log messages: foo.py