From 21c81fb1497487be64f0820c83250db29236d6be Mon Sep 17 00:00:00 2001 From: Petar Efnushev Date: Thu, 7 Apr 2016 00:17:07 +0200 Subject: [PATCH] Added database logger params in the config file --- test-core.ini | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/test-core.ini b/test-core.ini index bc0402d..b736803 100644 --- a/test-core.ini +++ b/test-core.ini @@ -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