| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- ##########################################
- # To change the log leve, edit the `level' field.
- # Choices are: DEBUG, INFO, WARNING, ERROR, CRITICAL
- #
- # The logrotation limit is set at 5MB per file for a total of 5 copies.
- # I.e. 25MB for each set of logs.
- ##########################################
- [handler_logfile]
- level=INFO
- class=handlers.RotatingFileHandler
- formatter=default
- args=('%LOG_DIR%/%PROC_NAME%.log', 'a', 5000000, 5)
- ##########################################
- # Please do not change the settings below
- ##########################################
- [logger_root]
- handlers=logfile,errorlog
- [logger_access]
- handlers=accesslog
- qualname=access
- [logger_django_auth_ldap]
- handlers=accesslog
- qualname=django_auth_ldap
- [logger_kazoo_client]
- level=INFO
- handlers=errorlog
- qualname=kazoo.client
- [logger_djangosaml2]
- level=INFO
- handlers=errorlog
- qualname=djangosaml2
- [logger_django_db]
- level=DEBUG
- handlers=errorlog
- qualname=django.db.backends
- # The logrotation limit is set at 5MB per file for a total of 5 copies.
- # I.e. 25MB for each set of logs.
- [handler_accesslog]
- class=handlers.RotatingFileHandler
- level=DEBUG
- propagate=True
- formatter=access
- args=('%LOG_DIR%/access.log', 'a', 5000000, 5)
- # All errors go into error.log
- [handler_errorlog]
- class=handlers.RotatingFileHandler
- level=ERROR
- formatter=default
- args=('%LOG_DIR%/error.log', 'a', 5000000, 5)
- [formatter_default]
- class=desktop.log.formatter.Formatter
- format=[%(asctime)s] %(module)-12s %(levelname)-8s %(message)s
- datefmt=%d/%b/%Y %H:%M:%S %z
- [formatter_access]
- class=desktop.log.formatter.Formatter
- format=[%(asctime)s] %(levelname)-8s %(message)s
- datefmt=%d/%b/%Y %H:%M:%S %z
- [loggers]
- keys=root,access,django_auth_ldap,kazoo_client,djangosaml2,django_db
- [handlers]
- keys=logfile,accesslog,errorlog
- [formatters]
- keys=default,access
|