X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/35176aa3e23a4660af9f139262213e7f47af0794..008329b110ad2862d9f1d6548b90eaf20a11fb6b:/doc/examples/log.ini?ds=sidebyside diff --git a/doc/examples/log.ini b/doc/examples/log.ini index 4daff82..bd9a5aa 100644 --- a/doc/examples/log.ini +++ b/doc/examples/log.ini @@ -1,34 +1,52 @@ ; No editar los loggers [loggers] -keys = root,fetch,test +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 = 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 = DEBUG +level = INFO formatter = file args = ('/var/log/sercom.log', 'a') @@ -40,19 +58,23 @@ args = (sys.stderr,) [handler_mail] class = handlers.SMTPHandler -level = ERROR +level = WARNING formatter = mail ; smtp, from, to, subject -args = ('llucax.hn.org', 'sercom@llucax.hn.org', 'luca@llucax.hn.org', '[SERCOM] Log') +args = ('localhost', 'from@example.com', 'to@example.com', '[SERCOM] Log') [formatter_file] -format = %(asctime)s %(name)5s[%(process)d] %(levelname)-8s %(message)s +format = %(asctime)s %(name)8s[%(process)d] %(levelname)-8s %(message)s datefmt = %c [formatter_stderr] 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