Skip to content
New issue

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

[Enhancement] 日志配置支持其它框架且可以配置日志文件生成目录和文件大小 #2247

Closed
zhaoyunxing92 opened this issue Mar 13, 2023 · 1 comment
Assignees
Labels

Comments

@zhaoyunxing92
Copy link
Contributor

What would you like to be added:
目前日志框架采用zap希望可以自定义,配置文件增强支持分割、大小等等能力
Why is this needed:

@zhaoyunxing92
Copy link
Contributor Author

zhaoyunxing92 commented Mar 21, 2023

dubbo:
  logger:
    level: debug
    driver: zap
    format: text
    appender: console,file
    file:
      name: dubbo.log
      max-size: 1
      max-backups: 2
      max-age: 3
      compress: true

我想的是这种配置

  • 日志格式:text/json
  • 日指输出支持控制台或文件
  • 文件可以支持文件大小、备份、是否压缩、保留几天

@zhaoyunxing92 zhaoyunxing92 self-assigned this Mar 21, 2023
This was referenced Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant