w41ter opened a new pull request, #39488:
URL: https://github.com/apache/doris/pull/39488

   Followup https://github.com/apache/doris/pull/35679
   
   # Background
   
   Previously, BE logs were written to files. The main cloud logs include 
meta_service.INFO and meta_service.WARNING, doris_cloud.out.
   In a K8s deployment environment, logs usually must be output to standard 
output, and other components process the log stream.
   
   # Solution
   This PR made the following changes:
   
   Modified the glog config:
   
   - When started with --daemon, logs are still written to various files, and 
the format remains unchanged.
   
   - When started with --console, be.INFO's log is output to standard output 
and marked with the prefix RuntimeLogger.
   
   Examples are as follows:
   
   ```
    RuntimeLogger I20240605 23:41:20.426553 4137369 
runtime_query_statistics_mgr.cpp:245] Report profile thread stopped
   ```
   
   Added a new BE config: `enable_file_logger`, which defaults to true. 
Indicates that logs will be recorded to files regardless of the startup method. 
For example, if it is started with `--console`, the log will be output to both 
the file and the standard output. If it is false, the log will not be recorded 
in the file regardless of the startup method.
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to