log4j.rootLogger=info,file,stdout

#log4j.logger.java.sql.Connection
=DEBUG
#log4j.logger.java.sql.Statement
=DEBUG
#log4j.logger.java.sql.PreparedStatement
=DEBUG
#log4j.logger.java.sql.ResultSet
=DEBUG

log4j.appender.stdout
=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout
=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern
=[%d{yy-MM-dd HH:mm:ss}] %m%n
#
for file
log4j.appender.file.layout
=org.apache.log4j.TTCCLayout
log4j.appender.file
=org.apache.log4j.FileAppender
log4j.appender.file.File
=../webapps/ROOT/LOG/tmg.log

    private Logger log=Logger.getLogger(ArticleSearcherImpl.class);


    log.error("",e);