From 55dc0e0b80ce332982ff86a5f5c41beb6086056d Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 1 Aug 2017 16:32:13 +0800 Subject: Improve logging messages Signed-off-by: Aaron LI --- fg21sim/utils/logging.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fg21sim/utils') diff --git a/fg21sim/utils/logging.py b/fg21sim/utils/logging.py index d539448..c0746e8 100644 --- a/fg21sim/utils/logging.py +++ b/fg21sim/utils/logging.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016 Weitian LI +# Copyright (c) 2016-2017 Weitian LI # MIT license """ @@ -11,6 +11,9 @@ import logging from logging import FileHandler, StreamHandler +logger = logging.getLogger(__name__) + + def setup_logging(dict_config=None, level=None, stream=None, logfile=None): """Setup the logging. @@ -104,3 +107,4 @@ def setup_logging(dict_config=None, level=None, stream=None, logfile=None): handler = FileHandler(logfile, mode=filemode) handler.setFormatter(formatter) root_logger.addHandler(handler) + logger.info("Set up logging.") -- cgit v1.2.2