VRE Backend API and Scheduler
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

46 lines
1.2 KiB

# In order to change the logging configuration, make a copy of this file and save it as 'logging.custom.ini'
# Then the logger will update the default logging values with your custom logging settings
[loggers]
keys=root
[handlers]
keys=consoleHandler,fileHandler,fileHandlerDebug,syslogHandler
[formatters]
keys=simpleFormatter
[logger_root]
level=DEBUG
# Add fileHandlerDebug to handlers to enable debug logging
# Add syslogHandler to handlers to enable syslog logging.
handlers=consoleHandler,fileHandler,fileHandlerDebug
[handler_consoleHandler]
class=StreamHandler
level=WARNING
formatter=simpleFormatter
args=(sys.stdout,)
[handler_fileHandler]
class=logging.handlers.TimedRotatingFileHandler
level=INFO
formatter=simpleFormatter
args=('log/django.log','midnight',1,30)
[handler_fileHandlerDebug]
class=logging.handlers.TimedRotatingFileHandler
level=DEBUG
formatter=simpleFormatter
args=('log/django.debug.log','midnight',1,30)
[handler_syslogHandler]
class=logging.handlers.SysLogHandler
level=INFO
formatter=simpleFormatter
# Use '/dev/log' for local syslog. For remote use ('hostip',portnr)
args=('/dev/log','local6')
[formatter_simpleFormatter]
format=%(asctime)s - %(levelname)-7s - %(module)-12s - %(message)s
datefmt=