I'm working on a project that is using a custom trace listener:
<system.diagnostics>
<trace>
<listeners>
<add name="CustomTraceListener" type="CustomTraceListener, CustomTraceListener" />
</listeners>
</trace>
</system.diagnostics>
And I have a class that logs way too much:
namespace MyApp.SuperChatty{
//I log too much
public class HeavyLogger{
}
}
How can I suppress Verbose
messages from MyApp.SuperChatty.HeavyLogger
?
When I used log4net, I could create a specific logger for a given class or namespace (log4net: Configure to ignore messages from a specific class), so how can I do this with Tracing?