hi,
i found all u've provided all the stuffs clear. and
its working fine, when i try to use with Orcale.
And i've changed some of the areas in config
file.... and mentoined as java comment & i attacted it
I think as per ur problem, JDBC Appender is not
able to catch by system, (i.e) probably prob. under classpath
_____________________________________ Amarnath P " try agian and again till you get SUCCEEDED"
----- Original Message -----
Sent: Thursday, May 03, 2001 3:22
PM
Subject: Re: log4j - Database
I am using the example given in the log4j. I am trying to use MS-Access to
load the errors using the congiguraiton file.Here are the files I am using
.
Thanks for u r response,
Pani
>From: "Amarnath" <[EMAIL PROTECTED]>
>Reply-To: "LOG4J Users Mailing List"
<[EMAIL PROTECTED]>
>To: "LOG4J Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: log4j - Database
>Date: Mon, 3 May 1999 09:09:31 +0530
>
>this probs. mail comes if ur not configure the appender to the
logger object. that all. find out the configuration clearly
>_____________________________________
>Amarnath P
>" try agian and again till you get SUCCEEDED"
> ----- Original Message -----
> From: saranga pani
> To: [EMAIL PROTECTED]
> Sent: Wednesday, May 02, 2001 9:35 PM
> Subject: Enq : log4j - Database
>
>
> Hi All,
>
> I am trying to log the errors into a database using lo4j.
>
> I am reading the database information from a configuration
file.
>
> But I am getting the following error,
>
> "log4J: Error : No Appender could be found for category
(org.apache.log4j.JDBCTest) "
>
> How can I rectify the above error?.
>
> thanks in advance ,
>
> Pani
>
>
>
>
>
>------------------------------------------------------------------------------
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
>
>
>
--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--------------------------------------------------------------------- To
unsubscribe, e-mail: [EMAIL PROTECTED] For
additional commands, e-mail:
[EMAIL PROTECTED]
|
# Here is a Configuration-file example, which can be used with the
PropertyConfigurator : /* Take out this line , even though this wont create prob. */
# Declare a appender variable named JDBC
log4j.rootCategory=JDBC
# JDBC is a class of JDBCAppender, which writes messages into a database
log4j.appender.JDBC=JDBCAppender /* Are u sure that u've mentioned package name
correctly....*/
######## by Amar - log4j.appender.JDBC=org.apache.log4j.JDBCAppender
# 1. Database-options to connect to the database
log4j.appender.JDBC.url=jdbc:odbc:Logging
log4j.appender.JDBC.username=""
log4j.appender.JDBC.password=""
/* if ur having prob. in DB Connection means load the sun driver here also... or carry
out thru' connection handler */
######## by Amar - log4j.appender.JDBC.driver=sun.jdbc.odbc.JdbcOdbcDriver
# 2. Connector-option to specify your own JDBCConnectionHandler
#log4j.appender.JDBC.connector=MyConnectionHandler
# 3. SQL-option to specify a static sql-statement which will be performed
with every occuring message-event
log4j.appender.JDBC.sql=INSERT INTO LOGTEST (id, msg, created_on,
created_by) VALUES (1, "error", sysdate, 'me')
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]