Specifying a Predefined Logging Level

7-4 Oracle WebLogic Server SIP Container Developer’s Guide

7.3 Specifying Content Types for Unencrypted Logging

By default WebLogic Server uses String format UTF-8 encoding to log the content of SIP messages having a text or applicationsdp Content-Type value. For all other Content-Type values, WebLogic Server attempts to log the message content using the character set specified in the charset parameter of the message, if one is specified. If no charset parameter is specified, or if the charset value is invalid or unsupported, WebLogic Server uses Base-64 encoding to encrypt the message content before logging the message. If you want to avoid encrypting the content of messages under these circumstances, specify a list of String-representable Content-Type values using the string-rep element in sipserver.xml. The string-rep element can contain one or more content-type elements to match. If a logged message matches one of the configured content-type elements, WebLogic Server logs the content in String format using UTF-8 encoding, regardless of whether or not a charset parameter is included. Example 7–2 shows a sample message-debug configuration that logs String content for three additional Content-Type values, in addition to text and applicationsdp content. Example 7–2 Logging String Content for Additional Content Types message-debug levelfulllevel string-rep content-typeapplicationmsml+xmlcontent-type content-typeapplicationmedia_control+xmlcontent-type content-typeapplicationmedia_controlcontent-type string-rep message-debug

7.4 Example Message Log Configuration and Output

Example 7–3 shows a sample message log configuration in sipserver.xml. Example 7–4, Sample Message Log Output shows sample output from the Managed Server log file. Example 7–3 Sample Message Log Configuration in sipserver.xml message-debug format pattern{0} {1}pattern tokenheaderstoken tokencontenttoken format message-debug Example 7–4 Sample Message Log Output Aug 10, 2005 7:12:08 PM PDT Info WLSS.Trace jiri.bea.com myserver ExecuteThread: 11 for queue: sip.transport.Default WLS Kernel BEA- 331802 SIP Tracer: logger Message: To: sut sip:invite10.32.5.230:5060 mailto:sip:invite10.32.5.230:5060 Note: You do not need to specify text or applicationsdp content types as these are logged in String format by default.