Return-Path: Delivered-To: apmail-logging-log4net-user-archive@www.apache.org Received: (qmail 3934 invoked from network); 15 Dec 2004 12:58:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Dec 2004 12:58:46 -0000 Received: (qmail 39496 invoked by uid 500); 15 Dec 2004 12:45:05 -0000 Delivered-To: apmail-logging-log4net-user-archive@logging.apache.org Received: (qmail 39412 invoked by uid 500); 15 Dec 2004 12:45:05 -0000 Mailing-List: contact log4net-user-help@logging.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: "Log4NET User" Delivered-To: mailing list log4net-user@logging.apache.org Received: (qmail 39350 invoked by uid 99); 15 Dec 2004 12:45:03 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of nicko@neoworks.com designates 80.168.17.114 as permitted sender) Received: from Unknown (HELO kronos.neoworks.co.uk) (80.168.17.114) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 15 Dec 2004 04:44:59 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: nothing appearing on ConsoleAppender in web application Date: Wed, 15 Dec 2004 12:46:32 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: nothing appearing on ConsoleAppender in web application Thread-Index: AcTgkBweF5RMGWWqQoGe4l1p2f0TWgCEjwnQ From: "Nicko Cadell" To: "Log4NET User" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Jerry, The ASP.NET runtime (aspnet_wp.exe) is not a console application, therefore it does not have a Console Window. The output of the ConsoleAppender goes to the System.Console.Out which by default is written to the attached Console Window. This is not the same thing as the Debug output window in the Visual Studio Debugger. You can redirect the System.Console.Out stream to another target, e.g. a local file, by setting the Console.SetOut() method. You can use the TraceAppender to log to the debuggers debug output window. Nicko > -----Original Message----- > From: Jerry Shea [mailto:jerry_maxtrak@hotmail.com]=20 > Sent: 12 December 2004 21:18 > To: log4net-user@logging.apache.org > Subject: nothing appearing on ConsoleAppender in web application >=20 > Hi, >=20 > I have setup log4net in an ASP.NET application. Logging works=20 > perfectly if I use a RollingFileAppender but if I use the=20 > ConsoleAppender, output does not appear in the console when=20 > running in the debugger (VS.NET 2003).=20 >=20 > I am configuring log4net with:=20 > [assembly: log4net.Config.DOMConfigurator(Watch=3Dtrue)] >=20 > And my web.config looks like this: >=20 > > type=3D"log4net.Appender.ConsoleAppender" > > > value=3D"%d [%t] %-5p %c [%x] - %m%n" /> > > > type=3D"log4net.Appender.RollingFileAppender,log4net"> > > > type=3D"log4net.Layout.PatternLayout,log4net"> > value=3D"%d [%t] %-5p %c [%x] - %m%n" /> > > > > > > > >=20 > If I change: >=20 > >=20 > To >=20 > >=20 > Logging works fine to my text file. >=20 > Anyone got any ideas? >=20 > Thanks, Jerry >=20 >=20 >=20