logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SeanB <sean_bucha...@yahoo.com>
Subject Re: Appending log entries to Visual Studio Team Edition unit test results.
Date Fri, 25 Apr 2008 19:43:59 GMT

Sorry, let me rephrase below...


SeanB wrote:
> 
> I'm trying append my log entries to the test results from a unit test in
> VSTS. Generally, anytime you call Console.WriteLine from within your unit
> test, the text is included in the test results. So, I figured if you use
> the appender I have below, the log results would show up there as well.
> I'm guessing the streams are redirected somehow...and I'm not sure how to
> remedy that. Has anyone tried to do this before?
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <log4net>
>   <appender name="ConsoleAppender"
> type="log4net.Appender.ConsoleAppender">
>     <target value="Console.Out" />
>     <layout type="log4net.Layout.PatternLayout">
>       <conversionPattern value="%date [Level=%-5level] [Class=%logger]: 
> %message%newline" />
>     </layout>
>   </appender>
> 
>   <root>
>     <level value="DEBUG" />
>     <appender-ref ref="ConsoleAppender" />
>   </root>
> </log4net>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Appending-log-entries-to-Visual-Studio-Team-Edition-unit-test-results.-tp16904339p16904373.html
Sent from the Log4net - Users mailing list archive at Nabble.com.


Mime
View raw message