KonaKart Community Forum

Installation / Configuration => Configuration of KonaKart => Topic started by: walidjaha on June 02, 2011, 04:29:24 pm

Title: configration
Post by: walidjaha on June 02, 2011, 04:29:24 pm
how to log4j.properties configuration file that the error appears on a text file and not in the consol
Title: Re: configration
Post by: greg on June 03, 2011, 11:35:59 am
This is standard log4j - not really anything to do with KonaKart....

Nevertheless, you could use something like this:

// KonaKart Appender
log4j.appender.KonaKartAppender=org.apache.log4j.FileAppender
log4j.appender.KonaKartAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.KonaKartAppender.layout.ConversionPattern=%d{dd-MMM HH:mm:ss} %-5p (%F:%M:%L) %m%n
log4j.appender.KonaKartAppender.file=../logs/KonaKart.log

Remember to add the "KonaKartAppender" to the log4j.rootLogger definition as well.