Re: logging from severl classes

2005-01-06 Thread flupke
Vinay Sajip wrote: It works for me: #file3.py import file1 import file2 a = file1.A() b = file2.B() b.otherfunction() gives 2004-12-28 00:18:34,805 DEBUG file2 6 creating class B 2004-12-28 00:18:34,805 DEBUG file2 9 in otherfunction yeah, the classes where a simplification of the classes i'm using

Re: logging from severl classes

2004-12-27 Thread Vinay Sajip
It works for me: #file3.py import file1 import file2 a = file1.A() b = file2.B() b.otherfunction() gives 2004-12-28 00:18:34,805 DEBUG file2 6 creating class B 2004-12-28 00:18:34,805 DEBUG file2 9 in otherfunction -- http://mail.python.org/mailman/listinfo/python-list

logging from severl classes

2004-12-22 Thread flupke
Hi, i'm trying to log to the same file (using logging module) from different classes but i can't seem to get it to work. File 1 is the main file which sets up the logger and then i want to also use the same logger in another class This is what i have file1 = import log