X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/787f059c7334e1e3913fda9f2f1bed5afe510b62..9668e7df9a694c793505a575b51751d63941cdb8:/doc/examples/log.ini diff --git a/doc/examples/log.ini b/doc/examples/log.ini index d3d4bdd..7cb42ee 100644 --- a/doc/examples/log.ini +++ b/doc/examples/log.ini @@ -1,37 +1,49 @@ ; No editar los loggers [loggers] -keys = root,fetch,test,deliver +keys = root,fetch,test,deliver,dbq ; A partir de acá se puede editar [handlers] -keys = file,mail,stderr +keys = file,mail,stderr,dbq [formatters] -keys = file,mail,stderr +keys = file,mail,stderr,dbq [logger_root] level = NOTSET -handlers = file,mail,stderr +handlers = [logger_fetch] level = NOTSET -handlers = +handlers = file,mail,stderr propagate = 1 qualname = fetch [logger_test] level = NOTSET -handlers = +handlers = file,mail,stderr propagate = 1 qualname = test [logger_deliver] level = NOTSET -handlers = +handlers = file,mail,stderr propagate = 1 qualname = deliver +[logger_dbq] +level = NOTSET +handlers = dbq +propagate = 1 +qualname = dbq + +[handler_dbq] +class = StreamHandler +level = INFO +formatter = dbq +args = (sys.stderr,) + [handler_file] class = FileHandler level = INFO @@ -59,6 +71,10 @@ datefmt = %c format = %(levelname)s: %(message)s datefmt = %c +[formatter_dbq] +format = %(message)s +datefmt = %c + [formatter_mail] format = %(levelname)s en %(name)s (pid %(process)d) en el archivo %(pathname)s, linea %(lineno)d