2022-10-02 22:24:38 +08:00
|
|
|
version = 1.0
|
2022-11-01 18:34:02 +08:00
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Loggers]
|
2022-11-01 18:34:02 +08:00
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Loggers.root]
|
|
|
|
level = 'DEBUG'
|
|
|
|
color = 'main_color'
|
|
|
|
file = 'main_log_file'
|
2022-11-03 20:37:30 +08:00
|
|
|
handlers = ['main_std_handler']
|
2022-11-01 18:34:02 +08:00
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Loggers.client]
|
|
|
|
level = 'TRACE'
|
|
|
|
color = 'main_color'
|
|
|
|
file = 'main_log_file'
|
2022-11-03 20:37:30 +08:00
|
|
|
handlers = ['main_std_handler']
|
2022-11-01 18:34:02 +08:00
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Loggers.server]
|
|
|
|
level = 'TRACE'
|
|
|
|
color = 'DiGua_color'
|
|
|
|
file = 'main_log_file'
|
2022-11-03 20:37:30 +08:00
|
|
|
handlers = ['main_std_handler']
|
2022-11-01 18:34:02 +08:00
|
|
|
|
|
|
|
[Files]
|
2022-11-01 23:22:39 +08:00
|
|
|
|
|
|
|
[Files.main_log_file]
|
2022-11-03 20:37:30 +08:00
|
|
|
name = './logs/{long_time}_logs.md'
|
2022-11-01 23:22:39 +08:00
|
|
|
level = 'TRACE'
|
|
|
|
cache_len = 20
|
|
|
|
cache_time = 1
|
|
|
|
mode = 'a'
|
|
|
|
encoding = 'utf-8'
|
|
|
|
|
2022-11-03 20:37:30 +08:00
|
|
|
[Handler]
|
|
|
|
|
|
|
|
[Handler.main_std_handler]
|
|
|
|
class = 'str handler'
|
|
|
|
format = 'format.main_format'
|
|
|
|
|
|
|
|
[Handler.main_file_hander]
|
|
|
|
class = 'cached file handler'
|
|
|
|
format = 'format.main_format'
|
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Formatter]
|
|
|
|
|
|
|
|
main_format = '[{long_time}] [{logger_name}] {level} | {file_name}:{code_line} | {message}'
|
|
|
|
file_name = 'no frame'
|
|
|
|
code_line = 'no frame'
|
|
|
|
short_time = '%Y-%m-%d %H-%M-%S'
|
|
|
|
long_time = '%Y-%m-%d %H-%M-%S:%%S'
|
2022-11-01 18:34:02 +08:00
|
|
|
|
|
|
|
[Colors]
|
|
|
|
|
2022-11-01 23:22:39 +08:00
|
|
|
[Colors.main_color]
|
|
|
|
# file_time
|