Formatting Messages

The format of a message can be customized by specifying a unique pattern layout for each appender class in the SAS logging facility. To create a pattern layout for an appender class, you use conversion characters that represent the types of data to include in the message. You can also control the sequence of the data and the alignment of the data in columns in the message.
Note: Conversion patterns that are used in the SAS logging facility are similar to the conversion patterns that are used in the C language PRINTF statement.
Note: The ARMAppender classes use a set of pattern layouts that are only for the ARM subsystem. For more information, see ARM Appender Pattern Layouts for ARM Messages in SAS Interface to Application Response Measurement (ARM): Reference.
Here is an excerpt of an XML file that contains a pattern layout:
<layout>
   <param name="ConversionPattern"  value="%d; %-5p; %t; %c; %m"/>  
</layout> 
Each data item to be included in the message is represented by a conversion character. Also, literal text and alignment commands can be specified to enhance the message format. In this example, the data items are the date, the logging level, the thread, the logger, and the message.
Here is an example of a message:
2008–06–25–10:24:22,234; WARN; 3; Appender.IOMCallContext; (yn14.sas.c:149);  
           Numeric maximum was larger than 8, am setting to 8.
For more information, see Pattern Layouts.