org.codehaus.mojo.tomcat.log
Class MavenLog
java.lang.Object
org.codehaus.mojo.tomcat.log.MavenLog
- All Implemented Interfaces:
- org.apache.commons.logging.Log
public class MavenLog
- extends java.lang.Object
- implements org.apache.commons.logging.Log
A JCL log implementation that delegates to a Maven log.
- Version:
- $Id: MavenLog.java 6588 2008-03-28 12:22:57Z bentmann $
- Author:
- Mark Hobson
Constructor Summary |
MavenLog(org.apache.commons.logging.LogFactory logFactory)
Creates a new MavenLog from the specified log factory. |
Method Summary |
void |
debug(java.lang.Object message)
|
void |
debug(java.lang.Object message,
java.lang.Throwable throwable)
|
void |
error(java.lang.Object message)
|
void |
error(java.lang.Object message,
java.lang.Throwable throwable)
|
void |
fatal(java.lang.Object message)
|
void |
fatal(java.lang.Object message,
java.lang.Throwable throwable)
|
protected org.apache.maven.plugin.logging.Log |
getMavenLog()
Gets the underlying Maven log to delegate to. |
void |
info(java.lang.Object message)
|
void |
info(java.lang.Object message,
java.lang.Throwable throwable)
|
boolean |
isDebugEnabled()
|
boolean |
isErrorEnabled()
|
boolean |
isFatalEnabled()
|
boolean |
isInfoEnabled()
|
boolean |
isTraceEnabled()
|
boolean |
isWarnEnabled()
|
void |
trace(java.lang.Object message)
|
void |
trace(java.lang.Object message,
java.lang.Throwable throwable)
|
void |
warn(java.lang.Object message)
|
void |
warn(java.lang.Object message,
java.lang.Throwable throwable)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MavenLog
public MavenLog(org.apache.commons.logging.LogFactory logFactory)
- Creates a new
MavenLog
from the specified log factory.
- Parameters:
logFactory
- the log factory to read attributes from
- Throws:
java.lang.IllegalArgumentException
- if the specified log factory was null
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interface org.apache.commons.logging.Log
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interface org.apache.commons.logging.Log
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interface org.apache.commons.logging.Log
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interface org.apache.commons.logging.Log
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interface org.apache.commons.logging.Log
isFatalEnabled
public boolean isFatalEnabled()
- Specified by:
isFatalEnabled
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object message)
- Specified by:
trace
in interface org.apache.commons.logging.Log
trace
public void trace(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
trace
in interface org.apache.commons.logging.Log
debug
public void debug(java.lang.Object message)
- Specified by:
debug
in interface org.apache.commons.logging.Log
debug
public void debug(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
debug
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object message)
- Specified by:
info
in interface org.apache.commons.logging.Log
info
public void info(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
info
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object message)
- Specified by:
warn
in interface org.apache.commons.logging.Log
warn
public void warn(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
warn
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object message)
- Specified by:
error
in interface org.apache.commons.logging.Log
error
public void error(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
error
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object message)
- Specified by:
fatal
in interface org.apache.commons.logging.Log
fatal
public void fatal(java.lang.Object message,
java.lang.Throwable throwable)
- Specified by:
fatal
in interface org.apache.commons.logging.Log
getMavenLog
protected org.apache.maven.plugin.logging.Log getMavenLog()
- Gets the underlying Maven log to delegate to.
- Returns:
- the Maven log
Copyright © 2005-2009. All Rights Reserved.