Re: Automatic Logging

2006-01-27 Thread [EMAIL PROTECTED]
Thanks very much. I found a good example of using sys.settrace at http://effbot.org/librarybook/sys.htm Cheers, Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good, Bad or Neutral. http://www.latedecember.com/sites/moodnews/ -- http://mail.python.org/mailman/listinfo/p

Re: Automatic Logging

2006-01-27 Thread Gregory Petrosyan
Sorry for broken indentation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatic Logging

2006-01-27 Thread Gregory Petrosyan
My decorator bike: import logging import traceback logging.basicConfig(level=logging.DEBUG, format="%(asctime)s %(levelname)s:\n%(message)s\n", filename="/tmp/py.log", filemode='w') def log(f): def new_f(*args, **kwds): try

Re: Automatic Logging

2006-01-26 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Sorry if this is a FAQ but Google returns a *lot* of results for Python > Logging :-) > > I am looking for a tool that will automatically add logging to existing > code e.g. Function Entries and Exits, Return values etc. Perhaps you are looking for nothing more than thi

Automatic Logging

2006-01-26 Thread [EMAIL PROTECTED]
Sorry if this is a FAQ but Google returns a *lot* of results for Python Logging :-) I am looking for a tool that will automatically add logging to existing code e.g. Function Entries and Exits, Return values etc. Thanks, Davy Mitchell Mood News - BBC News Headlines Auto-Classified as Good,