What is the simplest way to write logs to tomcat/catalina.out? I have tried System.out.print() and System.err.print() is working fine.
tomcat/catalina.out
System.out.print()
System.err.print()
import java.util.logging.* Logger.getLogger (YourClass.class.getName()).log(Level.WARNING, e.getMessage(), e); Logger.getLogger (YourClass.class.getName()).log(Level.INFO, "hello world");