Specifying Log File Rotation Using WLST

12-22 Oracle Fusion Middleware Administrators Guide For example, to specify UTF-8, use the following command: configureLogHandlername=odl-handler, encoding=UTF-8

12.4.5.2 Specifying the Log File Encoding in logging.xml

To specify the log file encoding in the logging.xml file, use an optional encoding property to specify the character set encoding. The logging.xml file is located in the following directory: DOMAIN_HOMEconfigfmwconfigserversserver_name For example, to specify UTF-8, add the following encoding property in the log_ handler element: property name=encoding value=UTF-8

12.5 Correlating Messages Across Log Files and Components

Oracle Fusion Middleware components provide message correlation information for diagnostic messages. Message correlation information helps those viewing diagnostic messages to determine relationships between messages across components. Each diagnostic message contains an Execution Context ID ECID and a Relationship ID RID : ■ An ECID is a globally unique identifier associated with the execution of a particular request. An ECID is generated when the request is first processed. ■ A RID distinguishes the work done in one thread on one process, from work done by any other threads on this and other processes on behalf of the same request. The ECID and RID help you to use log file entries to correlate messages from one application or across Oracle Fusion Middleware components. By searching for related messages using the message correlation information, multiple messages can be examined and the component that first generates a problem can be identified this technique is called first-fault component isolation. Message correlation data can help establish a clear path for a diagnostic message across components, within which errors and related behavior can be understood. You can use the ECID and RID to track requests as they move through Oracle Fusion Middleware. The following shows an example of an ECID: 0000I3K7DCnAhKB5JZ4Eyf19wAgN000001,0 The RID is one or more numbers separated by a colon :. The first RID created for a request is 0. Each time work is passed from a thread that has an ECID associated with it to another thread or process, a new RID is generated that encodes the relationship to its creator. That is, a new generation is created. Each shift in generation is represented by a colon and another number. For example, the seventh child of the third child of the creator of the request is: 0:3:7 You can view all the messages with the same ECID using the WLST displayLogs command. The following example searches for the ECID in the domain: displayLogsecid=0000Hl9TwKUCslT6uBi8UH18lkWX000002