Search code examples
javaloggingtomcat6

How to display the name of context in catalina.out?


I have 3 webapp running in tomcat 6,catalina.out,i use system.out.println("") for log,i want to display the name of webapp near each log ?


Solution

  • using system.out.println for logging is not that recommended. I suggest you'll look into some logging framework like log4j or slf4j