Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[SOLVED] Writting to log file on Oracle AS in ADF BC

566709Apr 1 2008 — edited Apr 1 2008
Hi!

I'm trying to write some information to any of the log files on Oracle Application Server but can't seem to get it working.

I have a http servlet class in which I try to log records like this:
 Logger loLogger = Logger.getAnonymousLogger();
 loLogger.info("HttpServlet: doGet start!");
This code displays
1.4.2008 9:44:02 package.HttpServlet doGet
INFO: HttpServlet: doGet start!

in JDeveloper output window, but after deployment to AS it is not written to any of the files. I do not use a custom logger or log files in my application so my question is: how can I write information to any of the log files on AS (for example logs in <ORACLE_HOME>\opmn\logs folder or in log.xml file in oc4j folder of j2ee home log)?

I've been reading about j2ee logging but as I said, can't get it to work. Are there any ADF classes to do this?

Thanks,
regards!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 29 2008
Added on Apr 1 2008
5 comments
637 views