Add lndl-logger config sync lndl and pyglet
This commit is contained in:
parent
4ff409db5d
commit
f57874ca48
70
config/lndl-logger.toml
Normal file
70
config/lndl-logger.toml
Normal file
@ -0,0 +1,70 @@
|
||||
config_version = 1
|
||||
|
||||
[Logger]
|
||||
|
||||
[Logger.client]
|
||||
# 日志名称
|
||||
logger_name = "client"
|
||||
level_name = "debug"
|
||||
# or 'DEBUG'
|
||||
# or level = 10
|
||||
outputs = ["std_out", "file_out"]
|
||||
|
||||
[Logger.server]
|
||||
# 日志名称
|
||||
logger_name = "server"
|
||||
level_name = "debug"
|
||||
# or 'DEBUG'
|
||||
# or level = 10
|
||||
outputs = ["std_out", "file_out"]
|
||||
|
||||
[Logger.main]
|
||||
# 日志名称
|
||||
logger_name = "main"
|
||||
level_name = "debug"
|
||||
# or 'DEBUG'
|
||||
# or level = 10
|
||||
outputs = ["std_out", "file_out"]
|
||||
|
||||
[Formatter]
|
||||
|
||||
[Formatter.main_formatter]
|
||||
# 格式化器名称
|
||||
class = "MainFormatter"
|
||||
# 格式化器参数
|
||||
time_format = "%Y-%m-%d %H:%M:%S"
|
||||
msec_time_format = "{}-{:03d}"
|
||||
use_absolut_path = false
|
||||
|
||||
[Formatter.std_formatter]
|
||||
formatter_class = "StdFormatter"
|
||||
sub_formatter = ["main_formatter"]
|
||||
default_template = "[{log_time}][{level}]|{logger_name}:{logger_tag}|{messages}"
|
||||
|
||||
[Outstream]
|
||||
|
||||
[Outstream.std_out]
|
||||
# 输出流名称
|
||||
class = "StdOutputStream
|
||||
# 输出流参数
|
||||
formatter = "std_formatter"
|
||||
use_stderr = false
|
||||
# or true
|
||||
level_name = "debug"
|
||||
# or 'DEBUG'
|
||||
# or level = 10
|
||||
|
||||
[Outstream.file_out]
|
||||
class = "FileCacheOutputStream"
|
||||
|
||||
level = 10
|
||||
# or level_name = 'DEBUG'
|
||||
# or level_name = 'debug'
|
||||
formatter = "std_formatter"
|
||||
flush_count_limit = 10
|
||||
# 5 条日志刷新一次
|
||||
flush_time_limit = 5
|
||||
# 5 秒刷新一次
|
||||
# or flush_time_limit = 0.5
|
||||
file_path = "./logs"
|
||||
file_name = "%s-dr.log"
|
@ -1 +1 @@
|
||||
Subproject commit 8c0795eb9ca9523b3bbe3ccf9ecfeb565dd11459
|
||||
Subproject commit fb5f7f34731ce55f054b0d2cd925a71f83a6740d
|
@ -1 +1 @@
|
||||
Subproject commit ad616e824f28ed18aea86594c160722179c7f9fb
|
||||
Subproject commit 9a347de1dfabfd19549c0b43e45192e6938d8cfc
|
@ -54,5 +54,7 @@ exclude = [
|
||||
lto = "yes"
|
||||
main = "DR.py"
|
||||
clang = true
|
||||
msvc = "latest"
|
||||
standalone = true
|
||||
output-dir = "build/windows"
|
||||
output-dir = "build"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user