From bdd432fab6c5d3f1d86a8d99e1bcc8d2333da91d Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 14 Jul 2022 10:46:04 -0400 Subject: [PATCH] Island: Reformat docstring for setup_logging() --- monkey/monkey_island/cc/server_utils/island_logger.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/monkey/monkey_island/cc/server_utils/island_logger.py b/monkey/monkey_island/cc/server_utils/island_logger.py index d3de14794..513d5031c 100644 --- a/monkey/monkey_island/cc/server_utils/island_logger.py +++ b/monkey/monkey_island/cc/server_utils/island_logger.py @@ -12,10 +12,11 @@ FILE_ENCODING = "utf8" def setup_logging(data_dir: Path, log_level: str): """ - Setup the logging configuration - :param data_dir: data directory file path - :param log_level: level to log from - :return: + Set up the logger + + :param data_dir: The data directory + :param log_level: A string representing threshold for the logger. Valid values are "DEBUG", + "INFO", "WARNING", "ERROR", and "CRITICAL". """ logger = logging.getLogger() logger.setLevel(log_level.upper())