XiaoMi / ozhera

Application Observable Platform in the Cloud Native Era
https://ozhera.m.one.mi.com
Apache License 2.0
59 stars 28 forks source link

[Enhancement] Separate Error Logs into a Dedicated File in log-manager #385

Open wtt40122 opened 3 days ago

wtt40122 commented 3 days ago

Description

Currently, our log-manager component receives and processes a large volume of log inputs. To better manage and monitor log information, we propose to categorize logs by directing error logs (ERROR level) to a specific error.log file, while other log levels continue to be output to the server.log file.

User Stories

Expected Features

  1. The log-manager should be able to direct logs to different files based on log levels.
  2. Error logs (ERROR level) should be directed to error.log.
  3. All other log levels (such as INFO, WARN, DEBUG, etc.) should be directed to server.log.