Re: Extending Logger

2008-11-07 Thread polettog
On Nov 7, 8:23 pm, Matimus <[EMAIL PROTECTED]> wrote: > > Yes but in the other hand > > :http://docs.python.org/library/logging.html#logger-objects > > "Note that Loggers are never instantiated directly, but always through > > the module-level function logging.getLogger(name)." > > That is part of

Re: Extending Logger

2008-11-07 Thread Matimus
> Yes but in the other hand > :http://docs.python.org/library/logging.html#logger-objects > "Note that Loggers are never instantiated directly, but always through > the module-level function logging.getLogger(name)." That is part of the power of the logging module. If you ask for a logger of the

Re: Extending Logger

2008-11-07 Thread polettog
On Nov 7, 12:17 am, Thomas Christensen <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] writes: > > I took a look to the logging module which was quite sexy at a first > > sight, but then i finally realized the following : the Logger class > > can't be extended since a Logger is created only with get

Re: Extending Logger

2008-11-06 Thread Thomas Christensen
[EMAIL PROTECTED] writes: > I took a look to the logging module which was quite sexy at a first > sight, but then i finally realized the following : the Logger class > can't be extended since a Logger is created only with getLogger (the > subclass can't call/shouldn't call Logger.__init__()). > So

Extending Logger

2008-11-06 Thread polettog
Hi, I took a look to the logging module which was quite sexy at a first sight, but then i finally realized the following : the Logger class can't be extended since a Logger is created only with getLogger (the subclass can't call/shouldn't call Logger.__init__()). So, did i miss something? or maybe