Hi!
Lama questions...
I need to logging like apache. To see any happening, or to see them in
two/three files:
info/warning/etc.
errors,
criticals
# Logging configuration
[loggers]
keys = root, routes, graffity
[handlers]
keys = console, accesslog, debuglog, criticallog
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_routes]
level = INFO
handlers =
qualname = routes.middleware
# "level = DEBUG" logs the route matched and routing variables.
[handler_accesslog]
class = FileHandler
args = ('access.log','a')
level = INFO
formatter = generic
[handler_debuglog]
class = FileHandler
args = ('debug.log','a')
level = DEBUG
formatter = generic
[handler_criticallog]
class = FileHandler
args = ('critical.log','a')
level = CRITICAL
formatter = generic
[logger_graffity]
level = DEBUG
handlers =
qualname = graffity
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %
(message)s
datefmt = %H:%M:%S
I got these three files in my project dir, but they are empty... I can
do anything, no messages I see in them.
Why? What I do wrong?
Thanks for your help:
dd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---