Re: Enumerating loggers iin logging module

2015-01-03 Thread John Pote
Thanks for the replies, thought there'd be a simple answer. Much appreciated. John On 30/12/2014 22:40, Chris Angelico wrote: On Wed, Dec 31, 2014 at 8:24 AM, Tim Chase wrote: While it may involve reaching into the objects may or may not be blessed, the following seems to work for me in Py2.7

Re: Enumerating loggers iin logging module

2014-12-30 Thread Chris Angelico
On Wed, Dec 31, 2014 at 8:24 AM, Tim Chase wrote: > While it may involve reaching into the objects may or may not be > blessed, the following seems to work for me in Py2.7: > > >>> import logging > >>> # add a bunch of loggers and sub-loggers > >>> print logging.Logger.manager.loggerDict.key

Re: Enumerating loggers iin logging module

2014-12-30 Thread Tim Chase
On 2014-12-30 18:42, jptechnical.co.uk wrote: > I've recently started using the logging module and wondered if > there was a way to enumerate all the Logger objects available as a > result of calls to "logging.getLogger(name)". Went through the docs > and could not spot any way of doing this. Have

Enumerating loggers iin logging module

2014-12-30 Thread jptechnical.co.uk
Hello all, I've recently started using the logging module and wondered if there was a way to enumerate all the Logger objects available as a result of calls to "logging.getLogger(name)". Went through the docs and could not spot any way of doing this. Have I missed something? It would have bee