• Post Reply Bookmark Topic Watch Topic
  • New Topic

log4j config

 
Marie
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added following in to the log4j.properties file and trying to start up the server. Vendor who built the server that server can write to log4j tables and all what I need to do is add below to .properties file.

But Server does not get started up... Do you have any idea ?

log4j.appender.DB=org.apache.log4j.db.DBAppender
log4j.appender.DB.connectionSource=org.apache.log4j.jdbc.DriverManagerConnectionSource
log4j.appender.DB.connectionSource.driver=com.mysql.jdbc.Driver
log4j.appender.DB.connectionSource.url=jdbc:mysql//serv1:3306/mylogDB
log4j.appender.DB.connectionSource.username=myname
log4j.appender.DB.connectionSource.password=mypass
 
Joe Ess
Bartender
Posts: 9361
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mei, You may have missed the JavaRanch Naming Policy on when you registered. To keep things friendly here, we ask that everyone use their real (or at least real-sounding name) consisting of a first name and last name. You can changed your displayed name here.
 
Marie
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe, see now, I added my 1st name.. People call me Mei in short.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!