Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env paster
- #
- # MyApp - Pylons configuration
- #
- # The %(here)s variable will be replaced with the parent directory of this file
- #
- # Logging configuration
- [loggers]
- keys = root, routes, myapp, sqlalchemy, alembic
- [handlers]
- keys = console, file
- [formatters]
- keys = generic
- [logger_root]
- level = WARN
- handlers = console, file
- [logger_routes]
- level = WARN
- handlers =
- qualname = routes.middleware
- # "level = DEBUG" logs the route matched and routing variables.
- [logger_myapp]
- level = DEBUG
- handlers =
- qualname = myapp
- [logger_sqlalchemy]
- level = WARN
- handlers =
- qualname = sqlalchemy.engine
- # "level = INFO" logs SQL queries.
- # "level = DEBUG" logs SQL queries and results.
- # "level = WARN" logs neither. (Recommended for production systems.)
- [logger_alembic]
- level = INFO
- handlers = console
- qualname = alembic
- [handler_console]
- class = StreamHandler
- args = (sys.stderr,)
- level = NOTSET
- formatter = bash
- [handler_file]
- class = FileHandler
- #args = ('/var/log/myapp.log', 'a')
- args = ('/tmp/myapp.log', 'a')
- level = NOTSET
- formatter = generic
- [formatter_generic]
- format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
- datefmt = %H:%M:%S
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement