aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/utils
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/utils')
-rw-r--r--fg21sim/utils/logging.py6
1 files changed, 5 insertions, 1 deletions
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 <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# 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.")