Skip to content

Commit

Permalink
Update plb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cvk98 authored Jun 22, 2022
1 parent a60b2bd commit 648bfc0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions plb.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,16 @@

"""Loguru"""
logger.remove()
# For Linux service
# logger.add(sys.stdout, format="{level} | {message}", level=cfg["logging_level"])
For Linux service
logger.add(sys.stdout, format="{level} | {message}", level=cfg["logging_level"])

# For Windows and linux window mode (you can change sys.stdout to "file.log")
logger.add(sys.stdout,
colorize=True,
format="<green>{time:YYYY-MM-DD at HH:mm:ss}</green> | "
"<level>{level}</level> | "
"<level>{message}</level>",
level=cfg["logging_level"])
# logger.add(sys.stdout,
# colorize=True,
# format="<green>{time:YYYY-MM-DD at HH:mm:ss}</green> | "
# "<level>{level}</level> | "
# "<level>{message}</level>",
# level=cfg["logging_level"])

"""Constants"""
GB = cfg["Gigabyte"]
Expand Down

0 comments on commit 648bfc0

Please sign in to comment.