Requirement :
To have our custom appender where we can play with the log files(names, size etc) which we want to create.
Solution :
Create our own appender and use it to get log files.
Used Tech :
1) log4j-api-2.2.jar
2) log4j-core-2.2.jar
Path where to put XML:
Xml under "WEB-INF\classes\" folder of custom war.
Log4j XML file:
Please find the path for "log4j2.xml"
https://drive.google.com/open?id=0BwyaWKtCo9z7NUJwbEVaY3pIRjg
Custom Plugin(Java File) created: "LogCustomRollingFileAppender.java"
Java file which is customized version of our plugin.
https://drive.google.com/open?id=0BwyaWKtCo9z7aEpXSExGZ29TMFU
To have our custom appender where we can play with the log files(names, size etc) which we want to create.
Solution :
Create our own appender and use it to get log files.
Used Tech :
1) log4j-api-2.2.jar
2) log4j-core-2.2.jar
Path where to put XML:
Xml under "WEB-INF\classes\" folder of custom war.
Log4j XML file:
Please find the path for "log4j2.xml"
https://drive.google.com/open?id=0BwyaWKtCo9z7NUJwbEVaY3pIRjg
Custom Plugin(Java File) created: "LogCustomRollingFileAppender.java"
Java file which is customized version of our plugin.
https://drive.google.com/open?id=0BwyaWKtCo9z7aEpXSExGZ29TMFU
No comments:
Post a Comment