posted 11 years ago
Hi, I'm trying to create my own Logger utility. I can create log and add it to my log file but I'm not able to append new logs to my existing file(which already been written) I want each and every call to my log methods to keep on appending to the file and not replacing it completely.
Here are my files.
Constants:-
LogFile:-
MyLogger:-
TestLog:-
Call to infoMsg() in TestLog.java is replacing the existing written log(MyLogger.debugMsg("Hi! This is to verify the logger.")).
Any idea how to deal with it?