Menu

Regarding log flooding issue in https://sourceforge.net/projects/log4cpp/

Help
Girwar
2020-04-24
2020-05-04
  • Alexander Perepelkin

    Hello

    Do we have any feature in log4cpp project about log flooding occurance for perticular log?

    The loggers do not track the content which comes into appenders. Therefore they have no ability to throttle the message which comes too frequently.

    I could suggest to build your own appender which performs the throttling.

    Alex.

     

    Last edit: Alexander Perepelkin 2020-04-24
  • Alexander Perepelkin

    Hi

    I can suggest you the following solution if you wish the throttling be the part of logging subsystem:
    create custom appender (or logger) class which will keep the logged data in memory and compare it with the data logged next. If test shows they are equal, then discard this message instead of writing it.

    However, the same functionality might be implemented separately from the logging subsystem as well. In this case log4cpp would consume only single message which came out of throttler.

    Alex.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.