[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4net-user
Subject:    RE: log4net: Set Up Logging In Web Service
From:       "Kevin Williams" <kevin_w69 () hotmail ! com>
Date:       2004-03-22 17:56:26
Message-ID: BAY16-F102frxUBWPY90000aabc () hotmail ! com
[Download RAW message or body]

I'm new to this list, but it seems that using a RemotingAppender 
configuration for each app and creating a RemotingSink to do the file 
logging would meet your need. YMMV


>From: "Denis, Rich" <Rich.Denis@ps.net>
>Reply-To: "Log4NET User" <log4net-user@logging.apache.org>
>To: "'Log4NET User'" <log4net-user@logging.apache.org>,   
>"'bbeaudet@efficiencylab.com'" <bbeaudet@efficiencylab.com>
>Subject: RE: log4net: Set Up Logging In Web Service
>Date: Mon, 22 Mar 2004 09:39:54 -0600
>
> >> I'd like to see the logged messages as part of the same log as those
>coming from my windows application.
>
>
>
>I think that this is part of your problem.  As far as I know two different
>processes can not log to the same log file.  Since the first process to 
>fire
>up will grab a lock on that file so that it can write to it.  The only way
>that I know to have a consolidated logging location would be to have both
>loggers log to a common database.
>
>
>
>Rich Denis
>perotsystems(tm)
>972.577.5869 Wk
>
>
>
>
>
>   _____
>
>From: Brian Beaudet [mailto:bbeaudet@efficiencylab.com]
>Sent: Saturday, March 20, 2004 11:40 PM
>To: log4net-user@logging.apache.org
>Subject: log4net: Set Up Logging In Web Service
>
>
>
>I'd like to setup logging in a web service that I'm calling from a window's
>application (c#).  The windows app uses a single log to log events and user
>interactions, but I'd also like to log some of the routines inside the web
>service when my code gets there.
>
>
>
>I've looked at the manual and placed this code in my web service:
>
>
>
>using( log4net.NDC.Push("context") )
>
>       {
>
>         log.Debug("testing, testing");
>
>       }
>
>
>
>But that doesn't get fired.
>
>
>
>I've also placed this as private member variable:
>
>
>
>private static readonly log4net.ILog log =
>
>       log4net.LogManager.GetLogger(
>
>       System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
>
>
>
>What should I do now?  I'd like to see the logged messages as part of the
>same log as those coming from my windows application.  Thank you for your
>help.
>
>
>
>
>

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://clk.atdmt.com/AVE/go/onm00200415ave/direct/01/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic