Package net.ggtools.grand.log
Class AntLog
- java.lang.Object
-
- net.ggtools.grand.log.AntLog
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
LEVEL_ALL
Field LEVEL_ALL.protected static int
LEVEL_DEBUG
Field LEVEL_DEBUG.protected static int
LEVEL_ERROR
Field LEVEL_ERROR.protected static int
LEVEL_FATAL
Field LEVEL_FATAL.protected static int
LEVEL_INFO
Field LEVEL_INFO.protected static String[]
LEVEL_NAMES
Field LEVEL_NAMES.protected static int
LEVEL_NONE
Field LEVEL_NONE.protected static int
LEVEL_TRACE
Field LEVEL_TRACE.protected static int
LEVEL_WARN
Field LEVEL_WARN.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object message)
Method debug.void
debug(Object message, Throwable t)
Method debug.void
error(Object message)
Method error.void
error(Object message, Throwable t)
Method error.void
fatal(Object message)
Method fatal.void
fatal(Object message, Throwable t)
Method fatal.void
info(Object message)
Method info.void
info(Object message, Throwable t)
Method info.boolean
isDebugEnabled()
Method isDebugEnabled.boolean
isErrorEnabled()
Method isErrorEnabled.boolean
isFatalEnabled()
Method isFatalEnabled.boolean
isInfoEnabled()
Method isInfoEnabled.boolean
isTraceEnabled()
Method isTraceEnabled.boolean
isWarnEnabled()
Method isWarnEnabled.protected void
log(Object message, int level)
Method log.protected void
log(Object message, Throwable t, int level)
Method log.static void
setCurrentProject(org.apache.tools.ant.Project newProject)
Method setCurrentProject.static void
setCurrentTask(org.apache.tools.ant.Task newTask)
Method setCurrentTask.void
trace(Object message)
Method trace.void
trace(Object message, Throwable t)
Method trace.void
warn(Object message)
Method warn.void
warn(Object message, Throwable t)
Method warn.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.logging.Log
debug, debug, error, error, fatal, fatal, info, info, isDebugEnabled, isErrorEnabled, isFatalEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, trace, trace, warn, warn
-
-
-
-
Field Detail
-
LEVEL_NONE
protected static final int LEVEL_NONE
Field LEVEL_NONE. (value is 0)- See Also:
- Constant Field Values
-
LEVEL_FATAL
protected static final int LEVEL_FATAL
Field LEVEL_FATAL. (value is 1)- See Also:
- Constant Field Values
-
LEVEL_ERROR
protected static final int LEVEL_ERROR
Field LEVEL_ERROR. (value is 2)- See Also:
- Constant Field Values
-
LEVEL_WARN
protected static final int LEVEL_WARN
Field LEVEL_WARN. (value is 3)- See Also:
- Constant Field Values
-
LEVEL_INFO
protected static final int LEVEL_INFO
Field LEVEL_INFO. (value is 4)- See Also:
- Constant Field Values
-
LEVEL_DEBUG
protected static final int LEVEL_DEBUG
Field LEVEL_DEBUG. (value is 5)- See Also:
- Constant Field Values
-
LEVEL_TRACE
protected static final int LEVEL_TRACE
Field LEVEL_TRACE. (value is 6)- See Also:
- Constant Field Values
-
LEVEL_ALL
protected static final int LEVEL_ALL
Field LEVEL_ALL. (value is 7)- See Also:
- Constant Field Values
-
LEVEL_NAMES
protected static final String[] LEVEL_NAMES
Field LEVEL_NAMES.
-
-
Method Detail
-
setCurrentProject
public static void setCurrentProject(org.apache.tools.ant.Project newProject)
Method setCurrentProject.- Parameters:
newProject
- Project
-
setCurrentTask
public static void setCurrentTask(org.apache.tools.ant.Task newTask)
Method setCurrentTask.- Parameters:
newTask
- Task
-
log
protected final void log(Object message, Throwable t, int level)
Method log.- Parameters:
message
- Objectt
- Throwablelevel
- int- See Also:
SimpleLog.log(java.lang.Object, java.lang.Throwable, int)
-
debug
public void debug(Object message)
Method debug.- Specified by:
debug
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.debug(java.lang.Object)
-
debug
public void debug(Object message, Throwable t)
Method debug.- Specified by:
debug
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.debug(java.lang.Object, java.lang.Throwable)
-
error
public void error(Object message)
Method error.- Specified by:
error
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.error(java.lang.Object)
-
error
public void error(Object message, Throwable t)
Method error.- Specified by:
error
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.error(java.lang.Object, java.lang.Throwable)
-
fatal
public void fatal(Object message)
Method fatal.- Specified by:
fatal
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.fatal(java.lang.Object)
-
fatal
public void fatal(Object message, Throwable t)
Method fatal.- Specified by:
fatal
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.fatal(java.lang.Object, java.lang.Throwable)
-
info
public void info(Object message)
Method info.- Specified by:
info
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.info(java.lang.Object)
-
info
public void info(Object message, Throwable t)
Method info.- Specified by:
info
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.info(java.lang.Object, java.lang.Throwable)
-
isDebugEnabled
public boolean isDebugEnabled()
Method isDebugEnabled.- Specified by:
isDebugEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isDebugEnabled()
-
isErrorEnabled
public boolean isErrorEnabled()
Method isErrorEnabled.- Specified by:
isErrorEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isErrorEnabled()
-
isFatalEnabled
public boolean isFatalEnabled()
Method isFatalEnabled.- Specified by:
isFatalEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isFatalEnabled()
-
isInfoEnabled
public boolean isInfoEnabled()
Method isInfoEnabled.- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isInfoEnabled()
-
isTraceEnabled
public boolean isTraceEnabled()
Method isTraceEnabled.- Specified by:
isTraceEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isTraceEnabled()
-
isWarnEnabled
public boolean isWarnEnabled()
Method isWarnEnabled.- Specified by:
isWarnEnabled
in interfaceLog
- Returns:
- boolean
- See Also:
Log.isWarnEnabled()
-
trace
public void trace(Object message)
Method trace.- Specified by:
trace
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.trace(java.lang.Object)
-
trace
public void trace(Object message, Throwable t)
Method trace.- Specified by:
trace
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.trace(java.lang.Object, java.lang.Throwable)
-
warn
public void warn(Object message)
Method warn.- Specified by:
warn
in interfaceLog
- Parameters:
message
- Object- See Also:
Log.warn(java.lang.Object)
-
warn
public void warn(Object message, Throwable t)
Method warn.- Specified by:
warn
in interfaceLog
- Parameters:
message
- Objectt
- Throwable- See Also:
Log.warn(java.lang.Object, java.lang.Throwable)
-
log
protected void log(Object message, int level)
Method log.- Parameters:
message
- Objectlevel
- int
-
-