testdriven.net log4net console output
How do I get lo开发者_开发问答g4net console output to show up when using TestDriven.net to run nunit tests? I'm using the ColoredConsoleAppender, and there is no log output.
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>
精彩评论