de.esprit.common.log.logpr

## Class LogPrinterConsole

- java.lang.Object
- - de.esprit.common.log.AbstractLogPrinter
  - - de.esprit.common.log.logpr.LogPrinterConsole

- All Implemented Interfaces:
    LogLevelEvent.Source, LogPrinter, java.io.Closeable, java.lang.AutoCloseable

      public class LogPrinterConsole
      extends AbstractLogPrinter

  This class prints tracing output to the system console.
  Author:
    Rainer Buesch

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `LogPrinterConsole(LogChannel channel)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `TextPrintable` | `getOutput(LogLevel level)` Write the messages to the system console or error console depending on what `LogLevel` is set
    `java.lang.String` | `getTypeString()` Returns a string identifying the type of this LogPrinter.

    - ### Methods inherited from class de.esprit.common.log.AbstractLogPrinter

      `addLogLevelListener, close, getLogChannel, getLogFormatter, getLogLevel, getLogMessageListener, isClosed, isSilent, processLogMessage, removeLogLevelListener, setLogFormatter, setLogLevel, setSilent, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### LogPrinterConsole

          public LogPrinterConsole(LogChannel channel)

  - ### Method Detail

    - #### getOutput

          public TextPrintable getOutput(LogLevel level)

      Write the messages to the system console or error console depending on what `LogLevel` is set

    - #### getTypeString

          public java.lang.String getTypeString()

      Description copied from interface: `LogPrinter`
      Returns a string identifying the type of this LogPrinter.

Copyright © 2014 EsprIT-Systems. All Rights Reserved.