CodeByAkram: Log4j
Showing posts with label Log4j. Show all posts
Showing posts with label Log4j. Show all posts
undefined 202

How to use / implement OWASP ESAPI Logger in Java

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...
undefined 201

How to create multiple log file using same log4j property file?

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...