@staticmethods called more than once
John Gordon
gordon at panix.com
Tue May 21 12:48:07 EDT 2013
In <kng7n6$efc$1 at reader1.panix.com> John Gordon <gordon at panix.com> writes:
> You should only call addHandler() once.
...for each intended logging output destination, of course. If you want
logging output to appear in a file and on-screen, then you would call
addHandler() once with a file handler and once with a screen handler.
But I think you may be calling addHandler multiple times for the same
file handler, which is causing the duplicate logging output.
--
John Gordon A is for Amy, who fell down the stairs
gordon at panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
More information about the Python-list
mailing list