Register / Login
Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Log message in SystemOut.log in WAS5.1x using Sun's logging API
posted 14 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:
private static ConsoleHandler c1 = new ConsoleHandler();
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?
I have used Log4J for this purpose before. But would like to be lightweight and would like to use Sun's own logging.
Danger, 10,000 volts, very electic .... tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
Boost this thread!
Configuring the Business Logs into a separate log file other than SystemOut.log
Question for the experts!
custom logging in websphere 7
NX:Help on Logging messages unusual output
Sun's Logger to log message in App Server log (SystemOut.log in WAS)