Total Pageviews

Wednesday, September 3, 2014

Enabling Logging on Oracle Identity Manager(OIM) during provisioning and reconciliation operations at logging.xml file


in order to troubleshoot provisioning and reconciliation operations issues enable logging after following below procedures.

configuration file is located at DOMAIN_HOME/config/fmwconfig/servers/OIM_SERVER/logging.xml

1. always please make sure to take backup logging.xml of  before updating the values.


2. chose what kind of logging you need.

Java LevelODL Message Type:Level
SEVERE.intValue()+100INCIDENT_ERROR:1
SEVEREERROR:1
WARNINGWARNING:1
INFONOTIFICATION:1
CONFIGNOTIFICATION:16
FINETRACE:1
FINERTRACE:16
FINESTTRACE:32



3. vi  logging.xml

  1. Add the following blocks in the file:
  2. <log_handler name='OIMCP.LDAP' level='[LOG_LEVEL]' class='oracle.core.ojdl.logging.ODLHandlerFactory'>
    <property name='logreader:' value='off'/>
         <property name='path' value='[FILE_NAME]'/>
         <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.  
  4. <logger name="ORG.IDENTITYCONNECTORS.LDAP" level="[LOG_LEVEL]" useParentHandlers="false">
         <handler name="OIMCP.LDAP"/>
         <handler name="console-handler"/>
       </logger>
    
  5. Replace both occurrences of [LOG_LEVEL] with the ODL message type and level combination that you require.
  6. Replace [FILE_NAME] with the full path and name of the log file in which you want log messages to be recorded.


3. Save and close the file.
4. Set the following environment variable to redirect the server logs to a file:

For Microsoft Windows:
set WLS_REDIRECT_LOG=FILENAME
For UNIX:
export WLS_REDIRECT_LOG=FILENAME
Replace FILENAME with the location and name of the file to which you want to redirect the output.

5.Restart the application server.
 

No comments:

Post a Comment