1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
### If a custom logging configuration is required, the following
### items under General must be present in the configuration file.
### Examples for customization are given. Just comment/uncomment
### the corresponding lines and do necessary adjustments.
### For official documentation visit
### https://docs.python.org/3.7/library/logging.config.html#configuration-file-format
## General
####################
[loggers]
keys=root
#keys=root, ospd_openvas
[logger_root]
level=NOTSET
handlers=default_handler
### There is already an existen default_handler.
### Uncomment the following to extend the existent handler list
####################
#[handlers]
#keys=default_handler, custom_syslog
### Example for a custom handler. Custom must be added to the handlers list,
####################
#[handler_custom]
#class=FileHandler
#level=DEBUG
#formatter=file
#args=('some_path_to_log_file.log', 'a')
#[handler_custom_syslog]
#class=handlers.SysLogHandler
#level=DEBUG
#formatter=file
#args=('/dev/log', handlers.SysLogHandler.LOG_USER)
### Specific logging configuration for a single module. In the following
### example, the ospd_openvas.lock module will log with debug level.
####################
#[logger_ospd_openvas]
#level=DEBUG
#handlers=custom_syslog
#qualname=ospd_openvas.lock
#propagate=0
|