Note: | A pattern layout is configured by using the <layout> and </layout> elements. Any <appender> element attributes and subelements in the syntax are present to show the context for the pattern layout elements. |
See | For appender class names, see Appender Reference. |
Valid in | XML configuration files for the File, RollingFile, and Console appender classes. |
Valid in | XML configuration files for the File, RollingFile, and Console appender classes. |
Restriction | The header pattern is limited to the S and d conversion characters in a logging configuration file. |
Interaction | The Header parameter header-text takes precedence over the HeaderPattern conversion-pattern parameter. |
Tips | The specification of format modifiers is optional. |
There is no explicit separator between literal text and the conversion specifier. The pattern parser recognizes the end of a conversion specifier when it detects the S or d conversion character. | |
See | d Conversion Character |
S Conversion Character | |
Format Modifiers | |
Example | <param name="HeaderPattern" value="%d %S{os_name} %S{jobid} %S{host_name} %S{user_name}"/> |
Valid in | XML configuration files for any appender class. |
Default | None. The log event produces an empty string if a conversion pattern is not specified. |
Restrictions | Conversion specifiers are case sensitive. |
Do not use these problematic characters, known as variants,
in pattern layouts in EBCDIC encoding environments: !
# $ @ \ []^`{}|~ \n . \n represents the use of the New
Line (or Enter) key
|
|
These characters are problematic because they might occupy different code positions in various encodings that are supported by SAS. For example, the EBCDIC code point location 5A (hexadecimal) represents the exclamation point (!) in U.S. English and the right bracket ( ] ) in Spanish. | |
Tips | The specification of format modifiers is optional. |
There is no explicit separator between literal text and a conversion specifier. The pattern parser recognizes the end of a conversion specifier when it detects a conversion character. | |
See | S Conversion Character |
Format Modifiers | |
For more information about variant characters, see the SAS National Language Support (NLS): Reference Guide. | |
Example | <param name="ConversionPattern" value="%d; %-5p; %t; %c; (%F:%L); %m"/> |
Valid in | XML configuration files for the File, RollingFile, and Console appender classes. |
Valid in | XML configuration files for the File, RollingFile, and Console appender classes. |
Restriction | The footer pattern is limited to the S and d conversion characters in a logging configuration file. |
Interaction | The Footer parameter footer-text takes precedence over the FooterPattern conversion-pattern parameter. |
Tip | There is no explicit separator between literal text and a conversion specifier. The pattern parser recognizes the end of a conversion specifier when it detects a conversion character. |
See | d Conversion CharacterS Conversion Character |
Format Modifiers | |
Example | <param name="FooterPattern" value="%d %S{host_name}"/> |