PyDocs

Nav

Generic Operating System Services

Logger.getChild

logging

method of Logger · Added in 3.2 (source)
  • Logger.getChild(suffix)
Get a logger which is a descendant to this one.

This is a convenience method, such that

logging.getLogger('abc').getChild('def.ghi')

is the same as

logging.getLogger('abc.def.ghi')

It's useful, for example, when the parent logger is named using
__name__ rather than a literal string.
0 Examples
No examples for logging/Logger.getChild.
See Also
No see-alsos for logging/Logger.getChild
0 Notes
No notes for Logger.getChild