Friday, October 14, 2005

WL : Logging to a Weblogic log file

There doesn't seem to be any way to programmatically log to the access.log but you can log to the server.log. In the jsp file:

(Note: # is "left square bracket %" and * is "% right square bracket").

#@ page import="weblogic.logging.NonCatalogLogger"*

#
NonCatalogLogger serverLogger;

serverLogger = new NonCatalogLogger ("Name of application");
serverLogger.info ("Some information message");
*

Enjoy!

No comments: