Added database logger params in the config file
This commit is contained in:
parent
97cd64b172
commit
21c81fb149
|
@ -24,13 +24,13 @@ ckan.legacy_templates = false
|
|||
|
||||
# Logging configuration
|
||||
[loggers]
|
||||
keys = root, ckan, sqlalchemy
|
||||
keys = root, ckan, sqlalchemy, ckan_harvester
|
||||
|
||||
[handlers]
|
||||
keys = console
|
||||
keys = console, dblog
|
||||
|
||||
[formatters]
|
||||
keys = generic
|
||||
keys = generic, dblog
|
||||
|
||||
[logger_root]
|
||||
level = WARN
|
||||
|
@ -41,6 +41,11 @@ qualname = ckan
|
|||
handlers =
|
||||
level = INFO
|
||||
|
||||
[logger_ckan_harvester]
|
||||
qualname = ckanext.harvest
|
||||
handlers = dblog
|
||||
level = DEBUG
|
||||
|
||||
[logger_sqlalchemy]
|
||||
handlers =
|
||||
qualname = sqlalchemy.engine
|
||||
|
@ -52,5 +57,14 @@ args = (sys.stdout,)
|
|||
level = NOTSET
|
||||
formatter = generic
|
||||
|
||||
[handler_dblog]
|
||||
class = ckanext.harvest.log.DBLogHandler
|
||||
args = ()
|
||||
level = DEBUG
|
||||
formatter = dblog
|
||||
|
||||
[formatter_dblog]
|
||||
format = %(message)s
|
||||
|
||||
[formatter_generic]
|
||||
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|
||||
|
|
Loading…
Reference in New Issue