More detail: You are using the module wrong. :) From looking at the module code, it looks like they don't expect you to ever create a logging.Logger()
directly. Many of the functions available directly on the module (ex getLogger()
) and the methods on logging.Logger()
(ex getChild()
) actually proxy through an instance of logging.Manager
that the module creates on import. When you create a Logger
with logging.Logger()
directly, you are actually creating a Logger
instance outside of the Manager
. When you subsequently call log.getChild()
, the module is actually creating the new logger inside the Manager
, but with the name of the Manager
-external logger appended to the front of the logger name. So your handler added to log
is not in the Manager
with the spawned child, and thus the handler doesn't work. I am a little confused still though on why adding a handler to log
before or after creating log2
causes logging against log2
to behave differently. I don't see what's causing that...