Specifying the Log File Format Using WLST

12-26 Oracle Fusion Middleware Administrators Guide

12.6.1.1.2 Writing the Trace Messages to a File Using Fusion Middleware Control You can save

the messages that are in memory to a file by invoking the QuickTrace Dump in Fusion Middleware Control: 1. From the QuickTrace tab of the Log Configuration page, select the handler and click Invoke QuickTrace Dump. The Invoke QuickTrace Dump dialog box is displayed. 2. For Buffer Name, if you have specified user buffers when you configured the QuickTrace handler, select the user, or select Common Buffer for users that you did not specify. If you did not specify any user buffers, the Common Buffer is the only option. 3. Click OK. When the processing is complete, the View Log Messages page is displayed. 4. You can search the messages, as described in Section 12.3.2 , and you can correlate the messages as described in Section 12.5 . In addition, you can download the messages to a file, as described in Section 12.3.3.1 .

12.6.1.2 Configuring and Using QuickTrace Using WLST

You can configure and use QuickTrace Using WLST, as described in the following topics: ■ Configuring QuickTrace Using WLST ■ Writing the Trace Messages to a File Using WLST ■ Disabling QuickTrace Using WLST

12.6.1.2.1 Configuring QuickTrace Using WLST To configure QuickTrace using WLST, you

associate a logger with the QuickTrace handler, using the configureLogHandler command. For example, to associate the oracle.adf logger with the QuickTrace handler and write all TRACE:1 messages to memory: 1. Use the configureLogHandler command to associate the logger with the QuickTrace handler: configureLogHandlername=quicktrace-handler, addToLogger=oracle.adf Handler Name: quicktrace-handler type: oracle.core.ojdl.logging.QuickraceHandlerFactory useLoggingContext: false bufferSize: 5242880 . . . enableUserBuffer: false The messages for the handler are written to a common buffer. You can set additional properties for the QuickTrace handler. For example, to enable user buffers for the users user1 and user2: configureLogHandlername=quicktrace-handler, addToLogger=oracle.adf.faces, propertyName=enableUserBuffer, propertyValue=true, propertyName=reserveBufferUserID, propertyValue=user1, user2 ...