On Oct 24, 7:55 pm, "Julian Hidalgo" <[EMAIL PROTECTED]> wrote:
> Hi João
>
> > I can't find a way to enable logging on my TestFixtures.
> > I already searched everywhere for an answer without any success.
>
> I don't see anything wrong at first sight. Have you tried to enable
> log4net internal debugging? That helped me a lot to get it running
> when I started with it. See "How do I enable log4net internal
> debugging?" here:http://logging.apache.org/log4net/release/faq.html.
> I'd also try using different appenders. If you still can't make it
> work, send the smallest piece of compiling code and I'll take a look
> at it.
>
> Hope it helps
> Julián

Hi,

I tried the internal debugging and still no output.
The running command:
Tools\mbunit\mbunit.cons.exe Logging\bin\Debug\Logging.dll /report-
type:text /verbose /sr /report-folder:TestReports

Here is a minimal textfixture:

Imports System
Imports MbUnit.Framework
Imports log4net

<TestFixture()> _
Public Class LoggingTest
    Private Log As log4net.ILog

    <SetUp()> _
    Public Sub SetUp()
        log4net.Config.BasicConfigurator.Configure()
        log4net.Util.LogLog.InternalDebugging = True
        Log = log4net.LogManager.GetLogger(Me.GetType.Name)
    End Sub

    <Test()> _
    Public Sub Should_log()
        Assert.IsTrue(True)
        Log.Debug("I SHOULD READ THIS IN LOG!!!")
    End Sub

End Class


Hope you can help me,
João


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to