How to get the log message from "ServletContext.log (" Hello World! ")"?

I am using Tomcat v7, I want to get a log message using ServletContext.log ("Hello World!"), But I can’t get any log from the console or log file. Someone please tell me how to set up so that I can see "Hello World!"

(It seems that it needs a config server.xml with the Logger tag added, I tried, but I don't see any log file.)

Appreciate your help.

+3
source share
2 answers

Tomcat Magazine informs you of registration.

-1
source

tomcat/logs, - , .

-1

All Articles