Added database logger params in the config file

This commit is contained in:
Petar Efnushev 2016-04-07 00:17:07 +02:00
parent 97cd64b172
commit 21c81fb149
1 changed files with 17 additions and 3 deletions

View File

@ -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