0

Can anyone let me now how to enable logging config files getting loaded during startup for tomcat server.

I'd like to print/echo (system.out) the application context beans getting loaded or check the order in which container loads the application context files while starting the server? Or echo the config files getting loaded.

Is there any statement that can be written on xml file itself that can be passed to application or system log files.

yeppe
  • 679
  • 1
  • 11
  • 43
  • Have you read the [Logging Configuration](https://tomcat.apache.org/tomcat-8.0-doc/logging.html) from Tomcat's doc? – Jorge Campos Mar 01 '18 at 05:54
  • Not entirely. Surely I would but I need this logging on eclipse console. Possible? Not on the log4j logger file. – yeppe Mar 01 '18 at 05:57
  • Yes it is. Just configure your project/tomcat to log to the console, eclipse will handle it just fine. – Jorge Campos Mar 01 '18 at 05:58
  • You will need a logger of some sort. if you just add system.out on your classes the moment the tomcat loads then it will print it out to what ever is configured, usually the console. – Jorge Campos Mar 01 '18 at 05:59
  • Well why I asked this question was just to print all the config files getting loaded at server startup and displayed on eclipse's console during server startup. – yeppe Mar 01 '18 at 11:10

0 Answers0