Skip to content

Commit

Permalink
change in logger.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalSontakke committed Sep 6, 2024
1 parent f39d0d6 commit 47fd06f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@


def logGen():
logging.basicConfig(filename=f'API_Requests/Logs/log_{time.strftime('%Y%m%d_%H%M%S')}.log',format='%(asctime)s %(levelname)s %(message)s',
datefmt='%m %d %Y %H %M %S', filemode='w')
logging.basicConfig(filename=f"API_Requests/Logs/log_{time.strftime('%Y%m%d_%H%M%S')}.log",format="%(asctime)s %(levelname)s %(message)s",
datefmt="%m %d %Y %H %M %S", filemode="w")

log_directory = "Logs"
if not os.path.exists(log_directory):
Expand Down

0 comments on commit 47fd06f

Please sign in to comment.