Specifying the Log File Encoding in logging.xml

Managing Log Files and Diagnostic Data 12-27 Handler Name: quicktrace-handler type: oracle.core.ojdl.logging.QuickTraceHandlerFactory useLoggingContext: false bufferSize: 5242880 . . . reserveBufferUserID: user1, user2 enableUserBuffer: true Messages for user1 and user2 are written to separate buffers. In addition, messages related to other users are written to the common buffer. 2. Set the level of the logger, using the setLogLevel command: setLogLevellogger=oracle.adf, level=TRACE:1 3. Many loggers are associated with other handlers. For example, the oracle.adf logger is associated with the handlers odl-handler, wls-domain, and console-handler. When you set the level of the logger, these handlers will use the same level TRACE:1 for the logger oracle.adf. As a result, much information will be written to the log files, consuming resources. To avoid consuming resources, set the level of the handlers to a lower level, such as WARNING or INFORMATION. For this example, set the level of the three handlers to WARNING:1: configureLogHandlername=odl-handler, level=WARNING:1 configureLogHandlername=wls-domain, level=WARNING:1 configureLogHandlername=console-handler, level=WARNING:1 Note that you should keep the level of the QuickTrace handler at ALL, which is the default.

12.6.1.2.2 Writing the Trace Messages to a File Using WLST You can save the messages to a

file by using the executeDump command. For example: executeDumpname=odl.quicktrace, outputFile=scratchoracle1qt1.dmp The command writes the dump to the specified file. For more information about the executeDump command, see Section 13.4.3.3 . In addition, if an incident is created automatically or manually, the QuickTrace messages are written to dump files in the incident directory. If you enabled user buffers, each user will have one file and the common buffer will have one file. The file names have the following format: odl_quicktracen_iincident_number.username.dmp For example: odl_quicktrace6_i1.weblogic.dmp See Section 13.4.4.1 for information about creating an incident.

12.6.1.2.3 Disabling QuickTrace Using WLST To disable QuickTrace, use the

configureLogHandler command and specify that the level is OFF: configureLogHandlername=quicktrace-handler, level=OFF Handler Name: quicktrace-handler