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
|
# Logging configuration
|
||||||
[loggers]
|
[loggers]
|
||||||
keys = root, ckan, sqlalchemy
|
keys = root, ckan, sqlalchemy, ckan_harvester
|
||||||
|
|
||||||
[handlers]
|
[handlers]
|
||||||
keys = console
|
keys = console, dblog
|
||||||
|
|
||||||
[formatters]
|
[formatters]
|
||||||
keys = generic
|
keys = generic, dblog
|
||||||
|
|
||||||
[logger_root]
|
[logger_root]
|
||||||
level = WARN
|
level = WARN
|
||||||
|
@ -41,6 +41,11 @@ qualname = ckan
|
||||||
handlers =
|
handlers =
|
||||||
level = INFO
|
level = INFO
|
||||||
|
|
||||||
|
[logger_ckan_harvester]
|
||||||
|
qualname = ckanext.harvest
|
||||||
|
handlers = dblog
|
||||||
|
level = DEBUG
|
||||||
|
|
||||||
[logger_sqlalchemy]
|
[logger_sqlalchemy]
|
||||||
handlers =
|
handlers =
|
||||||
qualname = sqlalchemy.engine
|
qualname = sqlalchemy.engine
|
||||||
|
@ -52,5 +57,14 @@ args = (sys.stdout,)
|
||||||
level = NOTSET
|
level = NOTSET
|
||||||
formatter = generic
|
formatter = generic
|
||||||
|
|
||||||
|
[handler_dblog]
|
||||||
|
class = ckanext.harvest.log.DBLogHandler
|
||||||
|
args = ()
|
||||||
|
level = DEBUG
|
||||||
|
formatter = dblog
|
||||||
|
|
||||||
|
[formatter_dblog]
|
||||||
|
format = %(message)s
|
||||||
|
|
||||||
[formatter_generic]
|
[formatter_generic]
|
||||||
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|
format = %(asctime)s %(levelname)-5.5s [%(name)s] %(message)s
|
||||||
|
|
Loading…
Reference in New Issue