From 75b5644175e01a38041f9b84ed0268bde685ab02 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Tue, 25 Aug 2020 10:12:19 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=83=20Format=20Logs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- log.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/log.py b/log.py index 2650fe0d..60647d4e 100644 --- a/log.py +++ b/log.py @@ -1,3 +1,4 @@ import logging -logging.basicConfig(filename='build.log', level=logging.DEBUG) +logging.basicConfig(filename='build.log', filemode='w', + format='%(name)s - %(levelname)s - %(message)s', level=logging.DEBUG)