Do I have to open oracle connection in my code or specifying the
connectionString  in the  config file is sufficient like below:

                <connectionType
value="System.Data.OracleClient.OracleConnection,
System.Data.OracleClient, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089" />
                <connectionString value="data source=DEVORLC.WORLD;User
ID=user;Password=password" />
                <commandText value="INSERT INTO SF_log
(Datetime,Thread,Log_Level,Logger,Message) VALUES (:log_date, :thread,
:log_level, :logger, :message)" />

-----Original Message-----
From: Nicko Cadell [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 20, 2005 3:55 PM
To: Log4NET User
Subject: RE: LOG4NET - Oracle 9i logging

If an exception is generated during logging you need to enable log4net's
internal debug to see it.

http://logging.apache.org/log4net/release/faq.html#internalDebug


Also useful stuff to include:

Specify the version of log4net you are using.
Specify what your assembly type is, i.e. exe or dll, and how your code
is launched, e.g. console application, windows application, ASP.NET
project, COM+ hosted object, etc...
Specify which runtime platform (e.g. MS .NET, Mono, SSCLI) you are using
and which version.

Cheers,
Nicko

> -----Original Message-----
> From: Usman Uppal [mailto:[EMAIL PROTECTED] 
> Sent: 20 June 2005 20:50
> To: Log4NET User
> Subject: RE: LOG4NET - Oracle 9i logging
> 
> I took log.config file is from the apache web-site. Only 
> changes that I made were the connection to Oracle DB. Nothing 
> gets logged to db and no errors are generated. How can I debug this?
> 
> 
> Thanks,
> 
> Usman
> 
> -----Original Message-----
> From: Ron Grabowski [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 14, 2005 7:07 PM
> To: Log4NET User
> Subject: Re: LOG4NET - Oracle 9i logging
> 
> 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
> #adonetapp
> ender-o9
> 
> --- Usman Uppal <[EMAIL PROTECTED]> wrote:
> 
> > Where can i get sample vb or c# for logging to Oracle 9i.
> >  
> > Usman
> >  
> >  
> > 
> 
> 
> 

Reply via email to