log4stash icon indicating copy to clipboard operation
log4stash copied to clipboard

Drop event

Open pravinkarthy opened this issue 7 years ago • 2 comments

hi, is there a filter to drop events ? If not, please advise if there would be a option to do so ?

Thanks.

pravinkarthy avatar Jul 25 '18 05:07 pravinkarthy

Hey, there isn't one today. I think this logic doesn't belong in the appender. It either belongs in your code that writes the log or it belongs to another appender that will write its logs using log4stash. As for the second option, it should be pretty easy to develop such mechanism.

eran-gil avatar Jul 25 '18 12:07 eran-gil

You also can use Filter mechanism of log4net.

urielha avatar Jul 27 '18 11:07 urielha