my scenario is as below
1) Existing application
2) Gives API interface to customize
3) There are sample implementation for these API
4) I want to induce log4j messages in this sample file and use
5) I tried to do the same by
protected final Logger logger = Logger.getLogger(getClass());
and then
logger.info("Calling initialize for AppendLogicToExistingLearningSample");
logger.debug("Calling initialize for AppendLogicToExistingLearningSample");
logger.warn("Calling initialize for AppendLogicToExistingLearningSample");
logger.trace("Calling initialize for AppendLogicToExistingLearningSample");
I am expecting it will pick up the same log4j.properties file as for the application and write to the same log
But this does not happen
in the CLASSPATH I have put the path of the xyz_log4j.properties
what can I do to get the messages
please help
what is PM?
this is my first post so not sure where to see PM
Found PM
Done the changes requested