[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: logging: getLogger() or getLogger(__name__)?
From: Malcolm Greene <python () bdurham ! com>
Date: 2016-07-28 21:33:16
Message-ID: 1469741596.1049638.679785633.72999BE8 () webmail ! messagingengine ! com
[Download RAW message or body]
Thank you Laurent!
----- Original message -----
From: Laurent Pointal <laurent.pointal@free.fr>
<snipped>
With __name__ you will have one logger per source file (module), with
corresponding filtering possibilities, and organized hierarchically as
are
packages (logging use . to built its loggers hierarchy).
Without __name__, you have one global default logger.
</snipped>
--
https://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic