logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Widerberg Marcus" <Marcus.Widerb...@tetrapak.com>
Subject Documentation on reconfiguring and isdebugenabled
Date Tue, 20 Feb 2007 09:46:28 GMT
Hello,

I would like to get the following test to pass, I've searched the
archives and cannot find a definite resolution.

            Hierarchy repository =
(Hierarchy)log4net.LogManager.GetLoggerRepository();
            repository.Shutdown();

            LogManager.ResetConfiguration();
            AppenderSkeleton stringLogger = new TextWriterAppender(
               new PatternLayout("%4timestamp [%12.12thread] %-5level
%-55.55type{1}: %-40.40message [%3line]%newline%exception%newline"),
               writer);
            stringLogger.Threshold = Level.Debug;

            Assert.IsTrue(Log.IsDebugEnabled, "Debug should be
enabled!");




Any help greatly appreciated!


/mawi

Mime
View raw message