2021-01-25 17:01:54 +08:00
|
|
|
{
|
|
|
|
'server': {
|
2021-04-02 23:31:54 +08:00
|
|
|
'level': 'DEBUG',
|
2021-01-25 17:01:54 +08:00
|
|
|
// option: CRITICAL ERROR WARNING INFO DEBUG
|
2021-02-14 19:58:39 +08:00
|
|
|
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
|
|
|
// format of log
|
2021-02-14 19:03:36 +08:00
|
|
|
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
2021-01-25 17:01:54 +08:00
|
|
|
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
|
|
|
},
|
|
|
|
'client': {
|
2021-04-02 23:31:54 +08:00
|
|
|
'level': 'DEBUG',
|
2021-01-25 17:01:54 +08:00
|
|
|
// option: CRITICAL ERROR WARNING INFO DEBUG
|
2021-02-14 19:58:39 +08:00
|
|
|
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
|
|
|
// format of log
|
2021-02-14 19:03:36 +08:00
|
|
|
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
2021-01-25 17:01:54 +08:00
|
|
|
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
|
|
|
},
|
|
|
|
'file': {
|
2021-04-02 23:31:54 +08:00
|
|
|
'level': 'DEBUG',
|
2021-01-25 17:01:54 +08:00
|
|
|
// option: CRITICAL ERROR WARNING INFO DEBUG
|
2021-02-14 19:58:39 +08:00
|
|
|
'fmt': '[%(asctime)s][%(name)s]:[%(levelname)s] %(message)s',
|
|
|
|
// format of log
|
2021-02-14 19:03:36 +08:00
|
|
|
'date_fmt': '%Y-%m-%d %H-%M-%S',
|
|
|
|
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
2021-01-25 17:01:54 +08:00
|
|
|
'filename': {
|
2021-02-15 21:45:20 +08:00
|
|
|
'main': '{date} DR.log',
|
2021-01-25 17:01:54 +08:00
|
|
|
// {date} -> date
|
2021-02-14 19:03:36 +08:00
|
|
|
'formats': {
|
2021-04-05 18:22:17 +08:00
|
|
|
'date': '%Y-%m-%d %H-%M-%S'
|
2021-02-15 21:45:20 +08:00
|
|
|
// format at https://docs.python.org/zh-cn/3.8/library/time.html#time.strftime
|
|
|
|
// can and more {xx} by adding more obj EZ
|
2021-02-14 19:03:36 +08:00
|
|
|
}
|
2021-01-25 17:01:54 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|