| Valid in: | XML configuration |
| Default | None |
| Requirement | These element attributes are required. |
| Requirement | This element attribute is required. |
| Default | None |
| Requirement | Filters are not required. |
| See | Filters |
| Default | None. If a conversion pattern is not specified, then the log message is formatted only by the layout that is specified in the referenced appender. |
| Requirement | This parameter is not required. |
| See | Pattern Layouts |
| Default | The locale setting that is in effect for the SAS session. For example, the LOCALE system option might be specified in the configuration file for a SAS server or in the configuration file for Base SAS. |
| For logging processes that run outside a SAS session (for example, logging for the SAS Object Spawner), the default is the locale that is specified in the operating system settings. | |
| Requirement | This parameter is not required. |
| See | SAS National Language Support (NLS): Reference Guide |
| Default | TRUE |
| Requirement | This parameter is not required. |
| Default | None |
| Requirement | This parameter is not required. |
| See | Logging Thresholds |
<?xml version="1.0" encoding="UTF-8"?>
<logging:configuration xmlns:logging="http//support.sas.com/xml/logging/1.0">
<!-- Write just the message portion of the event to the log file. -->
<appender name="file" class="FileAppender">
<param name="Append" value="false" />
<param name="FileNamePattern" value="logfile.%S{pid}.log" />
<layout>
<param name="ConversionPattern" value="%m" />
</layout>
</appender>
<!--
Include only the events that contain the word "state," and
prepend the level and the logger name of the event to the
message.
-->
<appender name="filter" class="FilteringAppender">
<appender-ref ref="file" />
<filter class="StringMatchFilter">
<param name="StringToMatch" value="state" />
<param name="AcceptOnMatch" value="true" />
</filter>
<filter class="DenyAllFilter" />
<layout>
<param name="ConversionPattern" value="%c - %p - %m" />
</layout>
</appender>
<-- Send App.Program messages directly to the log file -->
<logger name-"App.Program" additivity="false">
<appender-ref ref="file" />
<level value="INFO" />
</logger>
<--
Send all other events to the filter so that a different layout
can be applied.
->
<root>
<appender-ref ref="filter" />
<level value="INFO" />
</root>
</logging:configuration>