Noone knows? Perhaps I could rephrase: I need a programmatic way to determine
if a certain logentry would be filtered or not.
Example: I have the following logentry:
logger.Warn("This might be logged but I dont know. I want to test it in
code.");
Now I want to find out - at runtime - if that specific line in my code will
produce a log. Some programmatic way to test one or all configured filters
against the data in my log-line (Logger, Level, text etc).
Hope my meaning here is more clearer?
Thanks.
ITemplate wrote:
>
> Hi,
>
> Is this "old" forum the only for log4net? Anyways - suppose I have a
> certain logevent, is it possible to investigate up front IF that
> particular logevent would pass all filters? I can't seem to find a Filters
> collection that I can use for this?
>
> --
> Werner
>
--
View this message in context:
http://old.nabble.com/Possible-to-test-log4net-filters-on-certain-logevent--tp28188373p28229862.html
Sent from the Log4net - Users mailing list archive at Nabble.com.