1. open <Middleware_home>/user_projects/domains/iam_domain/config/fmwconfig/servers/oim_server1/logging.xml.
2. Create a new handler within <log_handlers> tag as below :
<log_handler name='Scheduler-handler' class='oracle.core.ojdl.logging.ODLHandlerFactory' level='TRACE:32'>
<property name='logreader:' value='off'/>
<property name='path' value='<Middleware>/user_projects/domains/iam_domain/servers/oim_server1/logs/scheduler.log'/>
<property name='format' value='ODL-Text'/>
<property name='useThreadName' value='true'/>
<property name='locale' value='en'/>
<property name='maxFileSize' value='5242880'/>
<property name='maxLogSize' value='52428800'/>
<property name='encoding' value='UTF-8'/>
</log_handler>
3. In the <loggers> tag add a new logger as below:
<logger name='<package_name>' level='TRACE:32'>
<handler name='Scheduler-handler'/>
<handler name='wls-domain'/>
<handler name='console-handler'/>
</logger>
4. Use com.thortech.util.logging.Logger or oracle.core.ojdl.logging.ODLLogger for logging in the code.
5. Restart the OIM server to take the changes.
Comments
Post a Comment