Xline
Xline copied to clipboard
[Feature]: Add an command line option to enable stdout log ouput
Description about the feature
Currently, Xline only supports redirecting logs to log files. The location of the log file and its rotation settings are determined by the command line parameters --log-file
and --log-rotate
. However, this approach may not be a good practice in a Kubernetes environment. The reason is that Kubernetes containers use overlayfs, and frequent logging operations can lead to unnecessary performance impacts. Additionally, in Kubernetes environments, kubectl logs
typically retrieves logs from stdout and stderr. Redirecting logs to log files can affect the convenience of maintenance and debugging. Therefore, we need to support redirecting log information to stdout.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Let me try.