Skip to Main Content

Application Development Software

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!

Configuring and using ODL logger on WCS 12c

1487442Apr 20 2016 — edited Apr 29 2016

Hi!

i'm having troubles to use new wcs logging system, oracle diagnostic logging.

It is enabled by default and if i use sites default logging, for example ics.LogMsg method, the messages are logged in sites.log file.

The point is, i created a new logger (for example, "controller.home") and added it to wcs loggers trough wcs admin interface, but the messages are not logged.

In my controller, i used this logger code:

import oracle.core.ojdl.logging.ODLLevel

import oracle.core.ojdl.logging.ODLLogger

//....

ODLLogger logger = ODLLogger.getODLLogger("controller.home");

logger.log(ODLLevel.INFO, "hello world");

What its wrong?

This post has been answered by 1487442 on Apr 29 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 27 2016
Added on Apr 20 2016
2 comments
1,109 views