Reputation: 6048
How do I get log4net console output to show up when using TestDriven.net to run nunit tests? I'm using the ColoredConsoleAppender, and there is no log output.
Upvotes: 4
Views: 583
Reputation: 6048
I've found the answer. You can use the regular xml config file approach, but you need to configure a TraceAppender:
<appender name="TraceAppender" type="log4net.Appender.TraceAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-5level %logger - %message%newline" />
</layout>
</appender>
Upvotes: 2