1
Good afternoon to all,
I am using log4j(log4j-1.2.17.jar) to generate the log of the system, however now I need to generate the log with date and make q it generates a log every day, I need the log to be generated so "testLog-20-05-2016.log" and tb need to do with q when turn day create a new log.
log4j.rootCategory=INFO,stdout,fileOut
log4j.category.fileOut=INFO
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.fileOut.layout.ConversionPattern=%d{dd-MM-yy HH:mm:ss,SSS} [%t] %5p %c:%L - %m%n
log4j.appender.fileOut =org.apache.log4j.RollingFileAppender
log4j.appender.fileOut.File=d://logTeste.log
log4j.appender.fileOut.layout=org.apache.log4j.PatternLayout
I have no idea how to put the date in the file name, someone can help me?