; No editar los loggers [loggers] keys = root,fetch,test ; A partir de acá se puede editar [handlers] keys = file,mail,stderr [formatters] keys = file,mail,stderr [logger_root] level = NOTSET handlers = file,mail,stderr [logger_fetch] level = NOTSET handlers = propagate = 1 qualname = fetch [logger_test] level = NOTSET handlers = propagate = 1 qualname = test [handler_file] class = FileHandler level = DEBUG formatter = file args = ('/var/log/sercom.log', 'a') [handler_stderr] class = StreamHandler level = CRITICAL formatter = stderr args = (sys.stderr,) [handler_mail] class = handlers.SMTPHandler level = ERROR formatter = mail ; smtp, from, to, subject args = ('llucax.hn.org', 'sercom@llucax.hn.org', 'luca@llucax.hn.org', '[SERCOM] Log') [formatter_file] format = %(asctime)s %(name)5s[%(process)d] %(levelname)-8s %(message)s datefmt = %c [formatter_stderr] format = %(levelname)s: %(message)s datefmt = %c [formatter_mail] format = %(levelname)s en %(name)s (pid %(process)d) en el archivo %(pathname)s, linea %(lineno)d el %(asctime)s ------------------------------------------------------------------------ %(message)s ------------------------------------------------------------------------ datefmt = %c