It would be helpful to see the <appender> node that you're having
problems with. Instead of setting parameters, you could create the raw
INSERT statement yourself. Be careful with this though, it is
susceptible to sql injection and/or bad sql being send to the database
if the message contains a unescaped single quote.

<commandText type="log4net.Layout.PatternLayout">
<conversionPattern 
value="INSER INTO Log (Date, Level, Message) VALUES (%d, '%p', '%m')"
/>
</commandText>

Have you tried the example Oracle 9i settings:

http://tinyurl.com/75k4w
http://logging.apache.org/log4net/release/config-examples.html#adonetappender-o9

--- Usman Uppal <[EMAIL PROTECTED]> wrote:

> Thank You for clearing error in my previous email. All my messages
> are
> going to the log file, nothing gets written to Oracle table and there
> are no more errors in debug. Need help. Here is the copy of the debug
> log file.
> 
> Do I need to write some code to log to Oracle of code for logging to
> log
> file should automatically write to Oracle db?
> 
>  
> 
> Thanks, usman

Reply via email to