Igor Korot ikorot01 at gmail.com
Tue Mar 4 11:02:17 CET 2014

Hi, ALL,
Could someone please explain to me how the code in
In particular I'm interested in how the mylib.py knows about the myapp.log.

What I mean is: logging object is not passed to mylib.py, so
essentially it should create a new instance of the logging object.

What am I missing?

But this question comes from the following fact about my application.
I tried to create a logging object which will store the logging
information to the file in the main class. Then I pass this object to
another class constructor and use it in that second class.

Upon running everything is OK, but when the program successfully
finishes, the log file has 0 length.

AFAIU, I'm doing it properly and the example referenced is wrong, yet
the results are completely different.

Thank you for any expplanation.

More information about the Python-list mailing list