Valid in: | XML Configuration |
Note: | ARMAppender syntax is case sensitive. |
See: | This document covers only the syntax of ARMAppender. For information about using ARM in SAS, including details about using ARMAppender, see SAS Interface to Application Response Measurement (ARM): Reference |
Default | None |
Restriction | Only one instance of an ARMAppender can exist per process. |
Note | If you intend to have a null value for the Agent parameter, you do not need to specify the parameter. |
Notes | Output is always sent to all referenced appenders as well as to the external agent, if specified, and to the ARM log. |
This parameter is not required. |
Default | SAS |
Note | This parameter is not required. |
Default | None. If a conversion pattern is not specified, then the log event produces an empty string. |
Note | This parameter is not required. |
Default | Native Unicode character is set for the host, or UTF-8 as required by the ARM 4.0 standards. |
Note | This parameter is not required. |
Default | None |
Note | This parameter is required. |
Default | FALSE |
Note | This parameter is not required. |
Default | TRUE |
Note | This parameter is not required. |
Default | The current user ID if available, otherwise NULL |
Note | This parameter is not required. |
<?xml version="1.0" encoding="UTF-8"?> <logging:configuration xmlns:logging="http://www.sas.com/xml/logging/1.0/"> <appender class="FileAppender" name="ARM2LOG"> <param name="File" value="arm2.log"/> <param name="ImmediateFlush" value="true"/> <layout> <param name="ConversionPattern" value="%X{ARM2.Record}"/> </layout> </appender> <appender class="FileAppender" name="ARM4LOG"> <param name="File" value="arm4.log"/> <param name="ImmediateFlush" value="true"/> <layout> <param name="ConversionPattern" value="%d|%12X{App.Name}|%14X{ARM.GroupName}|%12X{ARM.TranName}| %8X{ARM.TranState}|%8X{ARM.TranStatus}|%20X{ARM.TranStart.Time}| %20X{ARM.TranStop.Time}|%56X{ARM.ParentCorrelator}| %56X{ARM.CurrentCorrelator}"/> </layout> </appender> <appender class="ARMAppender" name="ARM"> <param name="Encoding" value="UTF-8"/> <param name="GetTimes" value="true"/> <param name="ManageCorrelators" value="true"/> <param name="AppName" value="yourSampleApp"/> <param name="GroupName" value="SAS"/> <appender-ref ref="ARM4LOG"/> <appender-ref ref="ARM2LOG"/> </appender> <appender class="FileAppender" name="LOG"> <param name="File" value="root.log"/> <param name="ImmediateFlush" value="true"/> <layout> <param name="ConversionPattern" value="%d %c %m"/> </layout> </appender> <logger name="Perf.ARM" additivity="false"> <level value="info"/> <appender-ref ref="ARM"/> </logger> <root> <level value="info"/> <appender-ref ref="LOG"/> </root> </logging:configuration>