Difficult-Rocket/configs/logger.toml

46 lines
855 B
TOML
Raw Normal View History

version = 1
[root]
level = "DEBUG"
handlers = [ "console", "file"]
[formatters.file]
class = "logging.Formatter"
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
2023-01-02 19:35:45 +08:00
datefmt = "%Y-%m-%d %H:%M:%S"
[formatters.client]
class = "logging.Formatter"
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
2023-01-02 19:35:45 +08:00
datefmt = "%Y-%m-%d %H:%M:%S"
[formatters.server]
class = "logging.Formatter"
format = "[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s"
2023-01-02 19:35:45 +08:00
datefmt = "%Y-%m-%d %H:%M:%S"
[handlers.console]
class = "logging.StreamHandler"
formatter = "file"
2023-06-22 13:34:14 +08:00
level = "INFO"
[handlers.file]
class = "logging.FileHandler"
filename = "{} DR.log"
encoding = "utf-8"
formatter = "file"
level = "DEBUG"
mode = "w"
[loggers.client]
level = "DEBUG"
handlers = []
[loggers.server]
level = "DEBUG"
handlers = []
[loggers.main]
level = "DEBUG"
2022-06-26 23:19:01 +08:00
handlers = []