/// <summary> /// Additional, using logManager Exstension /// </summary> /// <param name="logger">The logger.</param> private static void Log4NetExtensions(ILog logger) { logger.StartProfiler(); using (logger.Step("StepA")) { Thread.Sleep(100); using (logger.Step("StepA.B")) { Thread.Sleep(50); } } logger.StopProfiler(); logger.StartProfiler("New Session"); using (logger.Step("StepA")) { Thread.Sleep(50); } logger.StopProfiler(); }