Before going further lets talk about Log Forging or JVM Log Forging. Log ForgingAccording to OWASP , writing invalidated logs can allow attackers to forge log or inject malicious content in log file. Log forging is when attackers tries to add/modify the log content by exploring the security loopholes of...
Showing posts with label Log4j. Show all posts
Showing posts with label Log4j. Show all posts
You can create multiple logs file by using same log4j properties file or you can send logs to multiple files by using same log4j file.
Add this below to your log4j properties file.
log4j.rootLogger=TRACE, stdout
log4j.appender.dataLogs=org.apache.log4j.FileAppender
log4j.appender.dataLogs.File=logs/logFile1.log
log4j.appender.dataLogs.layout=org.apache.log4j.PatternLayout
log4j.appender.dataLogs.layout.ConversionPattern=%d...