Helpful information to includeProduct name: NServiceBus
Version: 5.2.8
Stacktrace:
Description: I'm using NServiceBus in an existing Console/Service process. When it starts, there are too many informations logged on the console. The app is using Log4Net for some logging and I can't change its consiguration. How I can reduce the NServiceBus logging?
I tried the following code but it doesn't work (a part that the logging is colored)
ColoredConsoleAppender appender = new ColoredConsoleAppender
{
Threshold = Level.Debug,
Layout = new SimpleLayout(),
};
appender.AddFilter(new LoggerMatchFilter
{
LoggerToMatch = "NServiceBus.",
AcceptOnMatch = false
});
appender.ActivateOptions();
BasicConfigurator.Configure(appender);
NServiceBus.Logging.LogManager.Use<Log4NetFactory>();
Thanks
Riccardo