org.apache.maven.doxia.tools
Class MojoLogWrapper

java.lang.Object
  extended by org.apache.maven.doxia.tools.MojoLogWrapper
All Implemented Interfaces:
Log

public class MojoLogWrapper
extends Object
implements Log

Wrap a Mojo logger into a Doxia logger.

Since:
1.1
Version:
$Id: MojoLogWrapper.java 1152164 2011-07-29 11:03:59Z bentmann $
Author:
Vincent Siveton
See Also:
Log

Field Summary
 
Fields inherited from interface org.apache.maven.doxia.logging.Log
LEVEL_DEBUG, LEVEL_DISABLED, LEVEL_ERROR, LEVEL_FATAL, LEVEL_INFO, LEVEL_WARN
 
Constructor Summary
MojoLogWrapper(Log log)
           
 
Method Summary
 void debug(CharSequence content)
          
 void debug(CharSequence content, Throwable error)
          
 void debug(Throwable error)
          
 void error(CharSequence content)
          
 void error(CharSequence content, Throwable error)
          
 void error(Throwable error)
          
 void info(CharSequence content)
          
 void info(CharSequence content, Throwable error)
          
 void info(Throwable error)
          
 boolean isDebugEnabled()
          
 boolean isErrorEnabled()
          
 boolean isInfoEnabled()
          
 boolean isWarnEnabled()
          
 void setLogLevel(int level)
          
 void warn(CharSequence content)
          
 void warn(CharSequence content, Throwable error)
          
 void warn(Throwable error)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MojoLogWrapper

public MojoLogWrapper(Log log)
Parameters:
log - a Mojo log
Method Detail

setLogLevel

public void setLogLevel(int level)

Specified by:
setLogLevel in interface Log

debug

public void debug(CharSequence content)

Specified by:
debug in interface Log

debug

public void debug(CharSequence content,
                  Throwable error)

Specified by:
debug in interface Log

debug

public void debug(Throwable error)

Specified by:
debug in interface Log

info

public void info(CharSequence content)

Specified by:
info in interface Log

info

public void info(CharSequence content,
                 Throwable error)

Specified by:
info in interface Log

info

public void info(Throwable error)

Specified by:
info in interface Log

warn

public void warn(CharSequence content)

Specified by:
warn in interface Log

warn

public void warn(CharSequence content,
                 Throwable error)

Specified by:
warn in interface Log

warn

public void warn(Throwable error)

Specified by:
warn in interface Log

error

public void error(CharSequence content)

Specified by:
error in interface Log

error

public void error(CharSequence content,
                  Throwable error)

Specified by:
error in interface Log

error

public void error(Throwable error)

Specified by:
error in interface Log

isDebugEnabled

public boolean isDebugEnabled()

Specified by:
isDebugEnabled in interface Log

isInfoEnabled

public boolean isInfoEnabled()

Specified by:
isInfoEnabled in interface Log

isWarnEnabled

public boolean isWarnEnabled()

Specified by:
isWarnEnabled in interface Log

isErrorEnabled

public boolean isErrorEnabled()

Specified by:
isErrorEnabled in interface Log


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.