Class AntLoggerAdapter
- java.lang.Object
-
- org.slf4j.helpers.MarkerIgnoringBase
-
- org.owasp.dependencycheck.ant.logging.AntLoggerAdapter
-
- All Implemented Interfaces:
java.io.Serializable
,org.slf4j.Logger
public class AntLoggerAdapter extends org.slf4j.helpers.MarkerIgnoringBase
An instance ofLogger
which simply calls the log method on the delegate Ant task.- Author:
- colezlaw
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
name
-
Constructor Summary
Constructors Constructor Description AntLoggerAdapter(org.apache.tools.ant.Task task)
Constructs an Ant Logger Adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String msg)
void
debug(java.lang.String format, java.lang.Object arg)
void
debug(java.lang.String format, java.lang.Object... arguments)
void
debug(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
debug(java.lang.String msg, java.lang.Throwable t)
void
error(java.lang.String msg)
void
error(java.lang.String format, java.lang.Object arg)
void
error(java.lang.String format, java.lang.Object... arguments)
void
error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
error(java.lang.String msg, java.lang.Throwable t)
java.lang.String
getName()
void
info(java.lang.String msg)
void
info(java.lang.String format, java.lang.Object arg)
void
info(java.lang.String format, java.lang.Object... arguments)
void
info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
info(java.lang.String msg, java.lang.Throwable t)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
protected java.lang.Object
readResolve()
void
setTask(org.apache.tools.ant.Task task)
Sets the current Ant task to use for logging.void
trace(java.lang.String msg)
void
trace(java.lang.String format, java.lang.Object arg)
void
trace(java.lang.String format, java.lang.Object... arguments)
void
trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
trace(java.lang.String msg, java.lang.Throwable t)
void
warn(java.lang.String msg)
void
warn(java.lang.String format, java.lang.Object arg)
void
warn(java.lang.String format, java.lang.Object... arguments)
void
warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
void
warn(java.lang.String msg, java.lang.Throwable t)
-
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
-
-
-
Method Detail
-
setTask
public void setTask(org.apache.tools.ant.Task task)
Sets the current Ant task to use for logging.- Parameters:
task
- the Ant task to use for logging
-
isTraceEnabled
public boolean isTraceEnabled()
-
trace
public void trace(java.lang.String msg)
-
trace
public void trace(java.lang.String format, java.lang.Object arg)
-
trace
public void trace(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
trace
public void trace(java.lang.String format, java.lang.Object... arguments)
-
trace
public void trace(java.lang.String msg, java.lang.Throwable t)
-
isDebugEnabled
public boolean isDebugEnabled()
-
debug
public void debug(java.lang.String msg)
-
debug
public void debug(java.lang.String format, java.lang.Object arg)
-
debug
public void debug(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
debug
public void debug(java.lang.String format, java.lang.Object... arguments)
-
debug
public void debug(java.lang.String msg, java.lang.Throwable t)
-
isInfoEnabled
public boolean isInfoEnabled()
-
info
public void info(java.lang.String msg)
-
info
public void info(java.lang.String format, java.lang.Object arg)
-
info
public void info(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
info
public void info(java.lang.String format, java.lang.Object... arguments)
-
info
public void info(java.lang.String msg, java.lang.Throwable t)
-
isWarnEnabled
public boolean isWarnEnabled()
-
warn
public void warn(java.lang.String msg)
-
warn
public void warn(java.lang.String format, java.lang.Object arg)
-
warn
public void warn(java.lang.String format, java.lang.Object... arguments)
-
warn
public void warn(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
warn
public void warn(java.lang.String msg, java.lang.Throwable t)
-
isErrorEnabled
public boolean isErrorEnabled()
-
error
public void error(java.lang.String msg)
-
error
public void error(java.lang.String format, java.lang.Object arg)
-
error
public void error(java.lang.String format, java.lang.Object arg1, java.lang.Object arg2)
-
error
public void error(java.lang.String format, java.lang.Object... arguments)
-
error
public void error(java.lang.String msg, java.lang.Throwable t)
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
- Throws:
java.io.ObjectStreamException
-
-