Closed Puyodead1 closed 4 years ago
Hello, I'm trying to format the output and put the levelname in square brackets, everything else formats correctly except the levelname which doesn't show. Here is the code I'm using:
verboselogs.install() logger = logging.getLogger("PyBot") coloredlogs.install(level="INFO", logger=logger, fmt="[%(levelname)s] %(asctime)s: %(message)s", datefmt="[%m-%d-%Y %I:%M:%S]")
Found out that the level names are black so they're hidden in Command Prompt
Quick fix, for anyone else wondering:
coloredlogs.DEFAULT_FIELD_STYLES["levelname"]["color"] = "white"
Hello, I'm trying to format the output and put the levelname in square brackets, everything else formats correctly except the levelname which doesn't show. Here is the code I'm using: