class MyLogger:
def __init__(self):
self.logger = logger
# Clear all settings
self.logger.remove()
# Add the format of the console output, sys.stdout is output to the screen; regarding these configurations, you need to customize the official website to view the relevant parameter description
self.logger.add(sys.stdout,
format="<white>{time:YYYY.MM.DD HH:mm:ss}</white> | " # > Time
"{process.name} | " # Process Name
"<cyan>{module}</cyan>.<cyan>{function}</cyan>" # Module name. Method name
":<cyan>{line}</cyan> | "
"<level>{level}</level> | "
"<level>{message}</level>",
)
def get_logger(self):
return self.logger
my_logger = MyLogger().get_logger()
.cnt {
margin: 0 auto;
max-width: 1300px;
min-width: 280px;
width: 90%;
}
.cnt {
margin: 0 auto;
max-width: 1200px;
min-width: 280px;
width: 90%;
}