Valid in: | XML configuration |
Default | None |
Requirement | The appender class and name are required to specify a console appender. |
See | Pattern Layouts |
<?xml version="1.0" encoding="UTF-8"?> <logging:configuration xmlns:logging="http://www.sas.com/xml/logging/1.0/"> <appender class="ConsoleAppender" name="console"> <layout> <param name=”ConversionPattern" value="%d %-5p [%t] %u - %m"/> </layout> <appender> <!-- Root logger --> <root> <level value="Error"/> <appender-ref ref="console"/> </root> </logging:configuration>