I have a working example of the log4j.xml file to configure the
DBAppender. But I can not create the equivalent in a name/value pair
format of a log4j.properties.

This is what I tried: log4j.appender.DB=org.apache.log4j.db.DBAppender
log4j.appender.DB.layout=org.apache.log4j.PatternLayout
log4j.appender.DB.layout.ConversionPattern=%d %-5p [%t] %c - %m%n
log4j.appender.DB.connectionSource=org.apache.log4j.db.DriverManagerConn
ectionSource
log4j.appender.DB.connectionSource.driverClass=com.mysql.jdbc.Driver
log4j.appender.DB.connectionSource.url=jdbc:mysql://lxdnd729.dev.qintra.
com:3306/ACCESS_MANAGER_LOG
log4j.appender.DB.connectionSource.user=yyyy
log4j.appender.DB.connectionSource.password=xxx

I am getting the following error:
 WARN [main] (PropertySetter.java:178) - Failed to set property
[connectionSource] to value
"org.apache.log4j.db.DriverManagerConnectionSource". 
org.apache.log4j.config.PropertySetterException: Conversion to type
[interface org.apache.log4j.db.ConnectionSource] failed.

Could anybody help me with this?

Thank you,
Francesco


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to