lhotari opened a new pull request, #17591:
URL: https://github.com/apache/pulsar/pull/17591

   ### Motivation
   
   - by default Pulsar won't flush log statements to disk after each log line. 
This is problematic while investigating some issues since the broker might 
crash without the last log lines.
   
   
   ### Modifications
   
   Make it possible to override the default setting with 
PULSAR_LOG_IMMEDIATE_FLUSH environment variable.
   Setting `PULSAR_LOG_IMMEDIATE_FLUSH=true` would make logging to flush the 
logging buffer after each log statement.
   
   
   ### Additional context
   
   immediateFlush option documentation: 
https://logging.apache.org/log4j/2.x/manual/appenders.html#RollingFileAppender
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [x] `doc-required` 
   (Your PR needs to update docs and you will update later)
   
   - [ ] `doc-not-needed` 
   (Please explain why)
   
   - [ ] `doc` 
   (Your PR contains doc changes)
   
   - [ ] `doc-complete`
   (Docs have been already added)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to