TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.hyades.ui.internal.util
Class PrintStreamLogger

java.lang.Object
  extended by org.eclipse.hyades.ui.internal.util.PrintStreamLogger
All Implemented Interfaces:
org.eclipse.hyades.ui.util.ILogger

public class PrintStreamLogger
extends java.lang.Object
implements org.eclipse.hyades.ui.util.ILogger

Implementation of ILogger that logs the data to specifics output and error print streams.


Field Summary
protected  java.io.PrintStream err
           
protected  java.io.PrintStream out
           
static org.eclipse.hyades.ui.util.ILogger SYSTEM
          Instance of PrinterStreamLogger that used the SYSTEM default output and error print streams.
 
Constructor Summary
PrintStreamLogger(java.io.PrintStream out, java.io.PrintStream err)
          Constructor for ConsoleLogger
 
Method Summary
 void dispose()
           
 void logError(java.lang.String text)
           
 void logError(java.lang.Throwable throwable)
           
 void logInfo(java.lang.String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYSTEM

public static final org.eclipse.hyades.ui.util.ILogger SYSTEM
Instance of PrinterStreamLogger that used the SYSTEM default output and error print streams.


out

protected java.io.PrintStream out

err

protected java.io.PrintStream err
Constructor Detail

PrintStreamLogger

public PrintStreamLogger(java.io.PrintStream out,
                         java.io.PrintStream err)
Constructor for ConsoleLogger

Parameters:
out - The output print stream
err - The error print stream
Method Detail

dispose

public void dispose()
See Also:
IDisposable.dispose()

logError

public void logError(java.lang.String text)
Specified by:
logError in interface org.eclipse.hyades.ui.util.ILogger
See Also:
ILogger.logError(java.lang.String)

logError

public void logError(java.lang.Throwable throwable)
Specified by:
logError in interface org.eclipse.hyades.ui.util.ILogger
See Also:
ILogger.logError(java.lang.Throwable)

logInfo

public void logInfo(java.lang.String text)
Specified by:
logInfo in interface org.eclipse.hyades.ui.util.ILogger
See Also:
ILogger.logInfo(java.lang.String)

TPTP 4.6.0 Platform Project
Internal API Specification