Good afternoon everyone,
I'm using log4j (log4j-1.2.17.jar) to generate the system log, but now I need to generate the log with data and cause it to generate a log every day, I need the log to be generated like this " testLog-20-05-2016.log "and you have to do with q when you turn the 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, can anyone help me?