diff options
author | Aaron LI <aly@aaronly.me> | 2017-08-01 16:32:13 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-08-01 16:32:13 +0800 |
commit | 55dc0e0b80ce332982ff86a5f5c41beb6086056d (patch) | |
tree | 87247fb2d867d8159bd8930f2d854ce0ced4edd4 /fg21sim/utils | |
parent | 6f59d9d78b5cc65d825606e4dcb105283a4dc47c (diff) | |
download | fg21sim-55dc0e0b80ce332982ff86a5f5c41beb6086056d.tar.bz2 |
Improve logging messages
Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/utils')
-rw-r--r-- | fg21sim/utils/logging.py | 6 |
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.") |