You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Colic, Alex" <al...@rbc.com> on 2002/12/16 15:35:24 UTC

JDBC appender error?

Hi,

when using the JDBC appender I am getting the following error in my Tomcat
log file:

log4j:ERROR Could not find value for key log4j.appender.J.layout

My jdbc appender is defined as follows:

log4j.appender.J=org.apache.log4j.jdbc.JDBCAppender
log4j.appender.J.URL=jdbc:mysql://localhost:3306/crlca?autoReconnect=true
log4J.appender.J.user=user
log4J.appender.J.password=password
log4j.appender.J.driver=org.gjt.mm.mysql.Driver
log4j.appender.J.sql=INSERT into LOG (LogDate, Logger, Priority, Message)
VALUES ('%d', '%c', '%p', '%m')
log4J.appender.J.layout=org.apache.log4j.PatternLayout

log4j.category.com.sirius=DEBUG, J, R

Could someone point out what I did wrong. Nothing is getting written to the
database although the rolling file appender, 'R', is working fine.

Thanks

Alex

------------------------------------------------------------
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. 

Ce courriel est confidentiel et protégé. L'expéditeur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) désigné(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser immédiatement, par retour de courriel ou par un autre moyen. 


============================================================