We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如果sink中不配置format,会使用pattern_formatter-inl.h中的配置,例如以下配置,sinks中如果不配置format,不会使用default的format plugins: log: default: - name: default# 可以默认的default,可以使用其他的logger名 format: "[%Y-%m-%d %H:%M:%S.%e] [thread %t] [%l] [%@] %v" sinks: local_file: # 本地日志的sink roll_type: by_size # 输出本地日志模式 eol: true # 每次输出是否自动换行。默认换行 filename: /usr/local/trpc/bin/log_by_size.log # 日志文件名,包含路径(相对或绝对路径), 默认为trpc.log roll_size: 10000 # 输出单个文件大小,默认100M reserve_count: 5 # 输出本地日志滚动文件个数,默认9个
The text was updated successfully, but these errors were encountered:
是存在这个问题,当sink中不配置format的时候不会使用default中的format,我们这边修改一下
pr: #180
Sorry, something went wrong.
No branches or pull requests
如果sink中不配置format,会使用pattern_formatter-inl.h中的配置,例如以下配置,sinks中如果不配置format,不会使用default的format
plugins:
log:
default:
- name: default# 可以默认的default,可以使用其他的logger名
format: "[%Y-%m-%d %H:%M:%S.%e] [thread %t] [%l] [%@] %v"
sinks:
local_file: # 本地日志的sink
roll_type: by_size # 输出本地日志模式
eol: true # 每次输出是否自动换行。默认换行
filename: /usr/local/trpc/bin/log_by_size.log # 日志文件名,包含路径(相对或绝对路径), 默认为trpc.log
roll_size: 10000 # 输出单个文件大小,默认100M
reserve_count: 5 # 输出本地日志滚动文件个数,默认9个
The text was updated successfully, but these errors were encountered: