org.apache.maven.cli
Class PrintStreamLogger

java.lang.Object
  extended by org.codehaus.plexus.logging.AbstractLogger
      extended by org.apache.maven.cli.PrintStreamLogger
All Implemented Interfaces:
Logger

public class PrintStreamLogger
extends AbstractLogger

Logs to a user-supplied PrintStream.

Author:
Benjamin Bentmann

Field Summary
 
Fields inherited from interface org.codehaus.plexus.logging.Logger
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
PrintStreamLogger(PrintStream out)
           
PrintStreamLogger(org.apache.maven.cli.PrintStreamLogger.Provider provider)
           
 
Method Summary
 void close()
           
 void debug(String message, Throwable throwable)
           
 void error(String message, Throwable throwable)
           
 void fatalError(String message, Throwable throwable)
           
 Logger getChildLogger(String arg0)
           
 void info(String message, Throwable throwable)
           
 void setStream(PrintStream out)
           
 void warn(String message, Throwable throwable)
           
 
Methods inherited from class org.codehaus.plexus.logging.AbstractLogger
debug, error, fatalError, getName, getThreshold, info, isDebugEnabled, isErrorEnabled, isFatalErrorEnabled, isInfoEnabled, isWarnEnabled, setThreshold, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintStreamLogger

public PrintStreamLogger(org.apache.maven.cli.PrintStreamLogger.Provider provider)

PrintStreamLogger

public PrintStreamLogger(PrintStream out)
Method Detail

setStream

public void setStream(PrintStream out)

debug

public void debug(String message,
                  Throwable throwable)

info

public void info(String message,
                 Throwable throwable)

warn

public void warn(String message,
                 Throwable throwable)

error

public void error(String message,
                  Throwable throwable)

fatalError

public void fatalError(String message,
                       Throwable throwable)

close

public void close()

getChildLogger

public Logger getChildLogger(String arg0)


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.