Vinicius Ottoni
Vinicius Ottoni

Reputation: 4677

Is there a way to choose which log level i want to log with Log4Net?

I saw that there is a way to log only one level type with the levelToMatch.

Is there a way to log WARN and DEBUG only for exemple? Only INFO and ERROR...?

Upvotes: 0

Views: 59

Answers (1)

Stefan Egli
Stefan Egli

Reputation: 17018

You can chain several LevelMatchFilters as demonstrated in the following answer:

https://stackoverflow.com/a/2832361/106567

Upvotes: 1

Related Questions