From 3e4bff103dd6055694b9f4d0dc1cea5f0a11564c Mon Sep 17 00:00:00 2001 From: Hirusha Adikari <36286877+hirusha-adi@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:35:04 +0530 Subject: [PATCH] change logger format --- search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.py b/search.py index 6d7e151..837314b 100644 --- a/search.py +++ b/search.py @@ -14,7 +14,7 @@ def success(self, message, *args, **kwargs): logging.Logger.success = success # configure logger -log_format = '[%(levelname)s] %(asctime)s: %(message)s' +log_format = '(%(asctime)s) [%(levelname)s] %(message)s' log_file_name = datetime.now().strftime('%Y-%m-%d_%H-%M-%S') + '.log' log_file_path = os.path.join(os.getcwd(), log_file_name)