org.codehaus.mojo.animal_sniffer.logging
Class PrintWriterLogger

java.lang.Object
  extended by org.codehaus.mojo.animal_sniffer.logging.PrintWriterLogger
All Implemented Interfaces:
Logger

public final class PrintWriterLogger
extends Object
implements Logger

Default implementation that sends output to a print writer

Since:
1.3
Author:
connollys

Constructor Summary
PrintWriterLogger(PrintStream destination)
           
 
Method Summary
 void debug(String message)
           
 void debug(String message, Throwable t)
           
 void error(String message)
           
 void error(String message, Throwable t)
           
 void info(String message)
           
 void info(String message, Throwable t)
           
 void warn(String message)
           
 void warn(String message, Throwable t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintWriterLogger

public PrintWriterLogger(PrintStream destination)
Method Detail

info

public void info(String message)
Specified by:
info in interface Logger

info

public void info(String message,
                 Throwable t)
Specified by:
info in interface Logger

debug

public void debug(String message)
Specified by:
debug in interface Logger

debug

public void debug(String message,
                  Throwable t)
Specified by:
debug in interface Logger

warn

public void warn(String message)
Specified by:
warn in interface Logger

warn

public void warn(String message,
                 Throwable t)
Specified by:
warn in interface Logger

error

public void error(String message)
Specified by:
error in interface Logger

error

public void error(String message,
                  Throwable t)
Specified by:
error in interface Logger


Copyright © 2008-2012 Codehaus. All Rights Reserved.