Hello,
I can't find a way to enable logging on my TestFixtures.
I already searched everywhere for an answer without any success.
What I did:
log4net.xml
<log4net>
<appender name="A1" type="log4net.Appender.ConsoleAppender">
<!-- A1 uses PatternLayout -->
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%-4timestamp [%thread] %-5level
%logger %ndc - %message%newline" />
</layout>
</appender>
<!-- Set root logger level to DEBUG and its only appender to A1 -->
<root>
<level value="DEBUG" />
<appender-ref ref="A1" />
</root>
</log4net>
On SetUp:
log4net.Config.XmlConfigurator.Configure(New System.IO.FileInfo("config
\log4net.xml"))
Log = LogManager.GetLogger("testing")
Inside a Test:
Log.Debug("Hello World")
I even tried to use a FileAppender and still no logging.
What did I do wrong?
Thanks,
João Rafael
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---