Writes messages to the UNIX and Windows operating system consoles.
Valid in: XML configuration


<appender class="ConsoleAppender" name="appender-name">
<param name="ConversionPattern" value="conversion-pattern"/>

Syntax Description

<appender class=”ConsoleAppender” name=”appender-name”>
specifies the user-assigned name for this instance of ConsoleAppender.
Default None
Requirement The appender class and name are required to specify a console appender.
<param name=”ConversionPattern” value=”conversion-pattern”/>
specifies a series of conversion characters that represent the types of data to include in the log. For example, use the conversion characters %d %t %m to include the date, the thread, and the message, respectively, in the log.
See Pattern Layouts


ConsoleAppender is a logging facility appender that supports event logging on UNIX and Windows operating systems. ConsoleAppender writes messages to the current console.


The following example is a typical XML configuration file that specifies ConsoleAppender.
<?xml version="1.0" encoding="UTF-8"?>
<logging:configuration xmlns:logging="">
   <appender class="ConsoleAppender" name="console">
         <param name=”ConversionPattern" value="%d %-5p [%t] %u - %m"/>
   <!-- Root logger -->
      <level value="Error"/>
      <appender-ref ref="console"/>