+ 2
How can i save logs in txt file using log4j?
Hello everyone, Im developing a Java application and I want to know How to register the application logs in a file for Future checks. Im Very thankfull If you can help me.
2 Answers
+ 11
Make sure the log4j jar file is available and you configured the log4j.xml. Import the package, get the logger, log. Code example and more:
https://www.tutorialspoint.com/log4j/log4j_sample_program.htm
+ 1
Thanks Bro, It helped a Lot!!