Logging Service in Dependent JAR Not Logging to File
Logging Service in Dependent JAR Not Logging to File
I have a core service JAR file which includes a Log4j 2 configuration and a loggingHandler class.
loggingHandler
This class formats messages and logs them to a specific file for analysis.
The method looks like this:
public void handle(Message msg)
LOG.info(msg.toString());
Now, I have another application which depends on this core service JAR file for log handling.
When the method handle (Message msg) is called, my understanding is that the message is supposed to be logged to a file configured in the core service JAR.
Message msg
I want to know if this is right.
If this is right, why I don't see the file get created?
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.