[kea-dev] Loggers and immediate flush
Chaigneau, Nicolas
nicolas.chaigneau at capgemini.com
Wed Mar 11 14:35:50 UTC 2015
Hello,
I have a suggestion concerning Kea logging implementation.
>From what I understand, options for log4cplus are handled in OutputOption.
These options contain a member "flush", which is used to set the following property of log4cplus FileAppender:
ImmediateFlush
When it is set true, output stream will be flushed after each appended event.
But it is always set to true.
I would like to be able to set this parameter for a given logger through Kea configuration file.
Why we need this:
We're using a dedicated logger to log each DHCP packet received, and I've noticed:
- first, this has a significant impact on Kea performances (which is expected)
- but this can be alleviated by disabling "ImmediateFlush" (I tested this by forcing "flush" to false in OutputOption constructor).
Preliminary benchmark tests show that doing so results in a performance gain of about 15-20%, which is significant.
I'll open a ticket to track this.
Regards,
Nicolas.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
More information about the kea-dev
mailing list