X-Git-Url: https://git.llucax.com/software/sercom-old.git/blobdiff_plain/35176aa3e23a4660af9f139262213e7f47af0794..787f059c7334e1e3913fda9f2f1bed5afe510b62:/doc/examples/log.ini?ds=inline diff --git a/doc/examples/log.ini b/doc/examples/log.ini index 4daff82..d3d4bdd 100644 --- a/doc/examples/log.ini +++ b/doc/examples/log.ini @@ -1,7 +1,7 @@ ; No editar los loggers [loggers] -keys = root,fetch,test +keys = root,fetch,test,deliver ; A partir de acá se puede editar [handlers] @@ -26,9 +26,15 @@ handlers = propagate = 1 qualname = test +[logger_deliver] +level = NOTSET +handlers = +propagate = 1 +qualname = deliver + [handler_file] class = FileHandler -level = DEBUG +level = INFO formatter = file args = ('/var/log/sercom.log', 'a') @@ -40,10 +46,10 @@ 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