RE: LOG4NET - Oracle 9i logging

2005-06-14 Thread Ron Grabowski
What does log4net's internal debug log: http://logging.apache.org/log4net/release/faq.html#internalDebug say when you start your application? --- Usman Uppal <[EMAIL PROTECTED]> wrote: > My config file looks exactly the same as it is on the oracle 9i > section of log4net website. I do not know

RE: 1.2.9 log4net.Layout.XMLLayout

2005-06-14 Thread Ron Grabowski
Log4net does not have a built-in mechanism for configuring the XML output as you specified. Its very easy to write your own Layout though: public class NaiveXmlLayout : LayoutSkeleton { private const string XML_FORMAT = "{0}\t{1}{0}\t{2}{0}\t{3}{0}{0}"; override public void ActivateOptions()

RE: LOG4NET - Oracle 9i logging

2005-06-14 Thread Usman Uppal
My config file looks exactly the same as it is on the oracle 9i section of log4net website. I do not know how should i enabled logging to DB in my code. My logging to file works. Any sample code is appreciated. Usman -Original Message- From: Ron Grabowski [mailto:[EMAI

Re: LOG4NET - Oracle 9i logging

2005-06-14 Thread Ron Grabowski
A good place to look for information about logging to Oracle 9i would be the Oracle 9i section of the log4net website: http://tinyurl.com/75k4w http://logging.apache.org/log4net/release/config-examples.html#adonetappender-o9 --- Usman Uppal <[EMAIL PROTECTED]> wrote: > Where can i get sample vb

LOG4NET - Oracle 9i logging

2005-06-14 Thread Usman Uppal
Where can i get sample vb or c# for logging to Oracle 9i.   Usman    

RE: ASP.NET Blocking Problem

2005-06-14 Thread Darren Blackett
Bit of an update (as prompted by Ron :)) Nicko, thanks very much for this it has helped immensely. Basically after implementing a flavour of this solution our app went from an average of 40 requests a second to 60 requests a second with the blocking around logging completely removed. Not to be s

RE: 1.2.9 log4net.Layout.XMLLayout

2005-06-14 Thread Kremer, Mark
What exactly does the XMLLayout do? It appears that it takes the pattern and adds a < and > around each entire log statement. Is this correct? Is there a built-in way to easily output log statements in the format that I described below? -Original Message- From: Ron Grabowski [mailto:[EM

Re: Multiple client log

2005-06-14 Thread Ron Grabowski
If you're able to write all the logs to a database, you could run a simple query to pull out customer specific logs and write then to the special locations on the drive. --- Johann Rutnam <[EMAIL PROTECTED]> wrote: > Hi, > > How do I use log4net to log message separately for each client > that a

Multiple client log

2005-06-14 Thread Johann Rutnam
Hi, How do I use log4net to log message separately for each client that accesses a service on the server? My server app could identify each client but I need to log the messages from the client separately (different folder/file for each client). Johann __

RE: Solved- RE: Error with closed appender (More Info)

2005-06-14 Thread Nicko Cadell
Log4net will close configured appenders when it shuts down. Log4net will shutdown if the AppDomain is unloaded, which happens when the application exits. You do not need to close the appender yourself. If you want to explicitly shutdown log4net then you can call the LogManager.Shutdown() method to

RE: Info Only Appender

2005-06-14 Thread Nicko Cadell
If you want to allow only INFO events then you would use if you want to opposite effect, i.e. all events except INFO, they you can use: Here the filter will Deny the INFO events and pass on the other events, and without the DenyAllFilter these will be logged. Essentially you have

Re: Info Only Appender

2005-06-14 Thread Ron Grabowski
After reading the SDK docs for FilterSkeleton and LevelMatchFilter, I didn't think I needed to put the DenyAllFilter at the end of the filter chain. The website gave a clearer explaination of what its necessary. It seems like a good recemendation would be to always include a DenyAllFilter at the en

Solved- RE: Error with closed appender (More Info)

2005-06-14 Thread Bonio Lopez
Hi, I found the problem. In the destructor of helper class the appender was closed. So when GC removed temporary log helper it also killed the appender. I have to find out a better sollution. Small questions. 1.If I use immedeate flush do I MUST to close appender? 2.If I don't use immediate flush d

RE: 1.2.9 - Attempted to append to closed appender named...

2005-06-14 Thread Nicko Cadell
Mark, Your 4 config files are being loaded into the same space and they are being merged together as they are loaded. As they are watching their source files they are also being reloaded in unpredictable orders. As a first option can you try removing all the elements from the element in all of

issue with AdoNetAdapter

2005-06-14 Thread joseph_gray
First let me give some background info, then I will describe my issue... 1. VS.NET 2003 2. .NET runtime 1.1 3. Log4Net version 1.2.9 4. Windows Form application. uses log4net.dll debug version. 5. Connecting to Oracle 9i database I am trying to set up log4net to log to an AdoNetAppender for Oracle

RE: Info Only Appender

2005-06-14 Thread Nicko Cadell
> -Original Message- > From: Russell Haley [mailto:[EMAIL PROTECTED] > Sent: 14 June 2005 18:00 > To: log4net-user@logging.apache.org > Subject: Info Only Appender > > I want to start by thanking Nicko Cadell for his previous > response to this problem. I'm very pleased that there is

Re: Info Only Appender

2005-06-14 Thread Ron Grabowski
1) ... 2) I'm don't understand your "real-time logger" description. Could you give another example or some sample calls and what the results would look like when written to a FileAppender? Here is a link to the PatterLayout class' documentation showing it's available patterns: htt

Info Only Appender

2005-06-14 Thread Russell Haley
I want to start by thanking Nicko Cadell for his previous response to this problem. I'm very pleased that there is a place to find answers for Log4Net. I was able to configure my appenders to work in tandem, but I still have an issue. 1) I have created 2 custom appenders that are to log different

RE: Error with closed appender (More Info)

2005-06-14 Thread Bonio Lopez
Hi Ron, The loghelper is log helper :). I can send it to you directly if you allow. The idea is to have a separate logger for each of modules. So I create m_Module1logger=new cLoghelper() m_Module1logger.Initlogger("Logger_for_module1") //This switches m_log to true or false, depends on if Logge

RE: 1.2.9 - Attempted to append to closed appender named...

2005-06-14 Thread Kremer, Mark
In the constructor of each, I am calling: XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(@"C:\arc\sample clients\arc_prototype\form1_log_config.xml")); with the file being different for each. I am not calling LogManager.Shutdown() anywhere in the solution. The ERROR messages are pri

Error with closed appender

2005-06-14 Thread Bonio Lopez
Dear All, I have one appender for the whole application it is initialized on the start and never explicitly closed. Sporadically, on the different places in one module I get following error: [3464] log4net:ERROR [FileAppender] Attempted to append to closed appender named []. I tried out minimal l

RE: 1.2.9 - Attempted to append to closed appender named...

2005-06-14 Thread Nicko Cadell
Mark, How are you loading the config files for the exe and dlls? Are you calling the XmlConfigurator programmatically? And if so when? Are you explicitly calling the LogManager.Shutdown method at any time? Are the log4net:ERROR messages printed at or just before program exit? Nicko > -Orig

Re: Error with closed appender (More Info)

2005-06-14 Thread Ron Grabowski
What is log4nethelper.dll? --- Bonio Lopez <[EMAIL PROTECTED]> wrote: > [Log4NetHelper, Version=1.0.1991.27610, Culture=neutral, > PublicKeyToken=f15b37290cce9538] > [3236] log4net: DefaultRepositorySelector: Assembly [Log4NetHelper, > Version=1.0.1991.27610, Culture=neutral, > PublicKeyToken=f1

Error with closed appender (More Info)

2005-06-14 Thread Bonio Lopez
This is a log. May be it can help [3236] log4net: PatternParser: Converter [literal] Option [[] Format [min=-1,max=2147483647,leftAlign=False] [3236] log4net: PatternParser: Converter [date] Option [dd MMM HH:mm:ss,fff] Format [min=-1,max=2147483647,leftAlign=False] [3236] log4net: PatternP

Error with closed appender

2005-06-14 Thread Bonio Lopez
Dear All, I have one appender for the whole application it is initialized on the start and never explicitly closed. Sporadically, on the different places in one module I get following error: [3464] log4net:ERROR [FileAppender] Attempted to append to closed appender named []. I tried out minimal l

RE: how to log custom properties

2005-06-14 Thread Nicko Cadell
> > If I need to log certain custom properties along with the log > message what is the best way to do it. I see > ThreadContext.Properties and LogicalThreadContext.Properties. > Not sure which of the two to use. Would like to know specific > scenarios for each of the two. The ThreadContex

RE: reconnectonerror

2005-06-14 Thread Nicko Cadell
The AdoNetAppender tries to open the connection to the database at configure time. When the appender tries to send a batch of updates the database and the connection is not open, and ReconnectOnError is set then it will attempt to reopen the connection once. > I want to understand the behaviour o

RE: Asynchronous Flag for AdoNetAdapter?

2005-06-14 Thread Nicko Cadell
The doc comment for the AdoNetAppender ReconnectOnError is not very clear. If the connection needs to be re-opened it will occur synchronously and this will block for up to the database connection timeout. It is possible that the appender may be being used asynchronously either by the calling app o

Asynchronous Flag for AdoNetAdapter?

2005-06-14 Thread Roland.Kofler
Hi folks, I want to set the ReconnectOnError Flag, and the SDK documentation says that i should do asynchronous logging then. How do i set a async flag for AdoNetAdapter? Thanks Roland Kofler