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
Sorry for broken indentation.
--
http://mail.python.org/mailman/listinfo/python-list
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
[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
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,