From 254fbcc7ad88f9cfb800d8fa63b68613429ab6a1 Mon Sep 17 00:00:00 2001 From: LielinJiang Date: Fri, 24 Apr 2020 12:29:07 +0000 Subject: [PATCH] add logger --- hapi/logger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hapi/logger.py b/hapi/logger.py index 91e5ae8..8d15f2f 100644 --- a/hapi/logger.py +++ b/hapi/logger.py @@ -15,8 +15,8 @@ def setup_logger(output=None, name="hapi", log_level=logging.INFO): output (str): a file name or a directory to save log. If None, will not save log file. If ends with ".txt" or ".log", assumed to be a file name. Otherwise, logs will be saved to `output/log.txt`. - name (str): the root module name of this logger. Default: 'hapi' - + name (str): the root module name of this logger. Default: 'hapi'. + log_level (enum): log level. eg.'INFO', 'DEBUG', 'ERROR'. Default: logging.INFO. Returns: logging.Logger: a logger """ -- GitLab