Issue
I have a Servlet and I wanted to log a message using log 4j, like this:
private static Logger logger = Logger.getLogger("DownloadServlet.class");
logger.info("Hello");
But I cannot find the log anywhere? Where is it saved? I am using a Tomcat server.
Solution
It is logging in your console, while you running the project. Your code is not saving logs to files.
Answered By - andrew17
Answer Checked By - Mildred Charles (JavaFixing Admin)