posted 18 years ago
How can I log messages in Application Server log (e.g., log message in SystemOut.log in WebSphere App Server) using Logging classes from Sun?
I am using code below:
import java.util.logging.*;
private static ConsoleHandler c1 = new ConsoleHandler();
logger.addHandler(c1);
logger.log(Level.WARNING, "Exception thrown while connecting to LDAP.", e);
ConsoleHandler only logs message in console, not in application log.
What do I need to do to log message in log file of app server?