From c96dcddc4e8ef33c39bf849cb89cd296dd4aa100 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 21 Jun 2016 10:16:54 +0000 Subject: logger: add format field (reserve) --- wqflask/utility/logger.py | 2 +- wqflask/utility/tools.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'wqflask/utility') diff --git a/wqflask/utility/logger.py b/wqflask/utility/logger.py index d1324dd5..556a265c 100644 --- a/wqflask/utility/logger.py +++ b/wqflask/utility/logger.py @@ -29,7 +29,7 @@ import logging import string from inspect import isfunction -from utility.tools import LOG_LEVEL, LOG_SQL +from utility.tools import LOG_LEVEL, LOG_SQL, LOG_FORMAT class GNLogger: """A logger class with some additional functionality, such as diff --git a/wqflask/utility/tools.py b/wqflask/utility/tools.py index 0df471fc..c467fa74 100644 --- a/wqflask/utility/tools.py +++ b/wqflask/utility/tools.py @@ -173,6 +173,7 @@ LOG_LEVEL_DEBUG = get_setting_int('LOG_LEVEL_DEBUG') LOG_SQL = get_setting_bool('LOG_SQL') LOG_SQLALCHEMY = get_setting_bool('LOG_SQLALCHEMY') LOG_BENCH = get_setting_bool('LOG_BENCH') +LOG_FORMAT = "%(message)s" # not yet in use USE_REDIS = get_setting_bool('USE_REDIS') USE_GN_SERVER = get_setting_bool('USE_GN_SERVER') -- cgit v1.2.3