Вопрос

When I have log4net set to DEBUG in a project with an NHibValidator dependency, I lots of feedback from NHibValidator. When the Validator is not the focus of the debug run however, this is just noise.

Does anyone know how to filter this out?

Cheers

Это было полезно?

Решение

You should be able to employ regular log4net configuration to specify the logging level for the logger name that the validator uses. See http://logging.apache.org/log4net/release/manual/configuration.html#loggers.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top