AttributeError: Logger instance has no attribute 'setFormatter'

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Dec 11 21:09:58 EST 2006


At Monday 11/12/2006 22:32, johnny wrote:


>def setupLogging():
>     global log
>     log = logging.getLogger("ftp")

Also, there is no need to use a global here. The logging machinery 
will return always the same logger given the same name. So 
logging.getLogger("ftp") will be always the same.


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar



More information about the Python-list mailing list