Enabling the Log Buffering from a CLI
You can use ConfigManager.exe (the Configuration Manager utility) from a Command Line Interface (CLI) to enable the log buffering.
Log buffering reduces the File IO overhead and CPU utilization as bunch of logs are stored in the memory and then flushed into a log file at a time instead of writing one log at a time.
Syntax
Use this command line syntax:
ConfigManager.exe -U:SCM -service:LOGMONITOR -uselogbuffer:value
-flushinterval:interval_value
-maxbuffersize:buffer_value
where:
value
is true or false, to enable or disable log buffering..interval_value
is the flushing interval in seconds. The value must be between 10 and 300.buffer_value
is the maximum log count allowed in the buffer before flushing. The value must be between 100 and 20,000.
Example
ConfigManager.exe -U:SCM -service:LOGMONITOR -uselogbuffer:True
-flushinterval:10 -maxbuffersize:500