Package org.apache.velocity.runtime.log
Class RuntimeLoggerLog
- java.lang.Object
-
- org.apache.velocity.runtime.log.Log
-
- org.apache.velocity.runtime.log.RuntimeLoggerLog
-
public class RuntimeLoggerLog extends Log
Deprecated.This will be removed along with the RuntimeLogger interface.A temporary RuntimeLogger wrapper to make the deprecation of UberspectLoggable.setRuntimeLogger(RuntimeLogger) feasible. This overrides all Log methods, either throwing UnsupportedOperationExceptions or passing things off to the theoretical RuntimeLogger used to create it. Oh, and all the isEnabled() methods return true. Of course, ideally there is no one out there who actually created their own RuntimeLogger instance to use with UberspectLoggable.setRuntimeLogger() and this class will therefore never be used. But it's here just in case. - Since:
- 1.5
- Version:
- $Id: RuntimeLoggerLog.java 685685 2008-08-13 21:43:27Z nbubna $
- Author:
- Nathan Bubna
-
-
Constructor Summary
Constructors Constructor Description RuntimeLoggerLog(RuntimeLogger rlog)Deprecated.Creates a new Log that wraps a PrimordialLogChute.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddebug(java.lang.Object message)Deprecated.Log a debug message.voiddebug(java.lang.Object message, java.lang.Throwable t)Deprecated.Log a debug message and accompanying Throwable.voiderror(java.lang.Object message)Deprecated.Log an error message.voiderror(java.lang.Object message, java.lang.Throwable t)Deprecated.Log an error message and accompanying Throwable.protected LogChutegetLogChute()Deprecated.Returns the LogChute wrapped by this Log instance.booleangetShowStackTraces()Deprecated.voidinfo(java.lang.Object message)Deprecated.Log an info message.voidinfo(java.lang.Object message, java.lang.Throwable t)Deprecated.Log an info message and accompanying Throwable.booleanisDebugEnabled()Deprecated.Returns true if debug level messages will be printed by the LogChute.booleanisErrorEnabled()Deprecated.Returns true if error level messages will be printed by the LogChute.booleanisInfoEnabled()Deprecated.Returns true if info level messages will be printed by the LogChute.booleanisTraceEnabled()Deprecated.Returns true if trace level messages will be printed by the LogChute.booleanisWarnEnabled()Deprecated.Returns true if warn level messages will be printed by the LogChute.protected voidsetLogChute(LogChute newLogChute)Deprecated.Updates the LogChute wrapped by this Log instance.protected voidsetShowStackTraces(boolean showStacks)Deprecated.voidtrace(java.lang.Object message)Deprecated.Log a trace message.voidtrace(java.lang.Object message, java.lang.Throwable t)Deprecated.Log a trace message and accompanying Throwable.voidwarn(java.lang.Object message)Deprecated.Log a warning message.voidwarn(java.lang.Object message, java.lang.Throwable t)Deprecated.Log a warning message and accompanying Throwable.-
Methods inherited from class org.apache.velocity.runtime.log.Log
formatFileString, formatFileString, formatFileString, formatFileString, log, log
-
-
-
-
Constructor Detail
-
RuntimeLoggerLog
public RuntimeLoggerLog(RuntimeLogger rlog)
Deprecated.Creates a new Log that wraps a PrimordialLogChute.- Parameters:
rlog-
-
-
Method Detail
-
setLogChute
protected void setLogChute(LogChute newLogChute)
Deprecated.Description copied from class:LogUpdates the LogChute wrapped by this Log instance.- Overrides:
setLogChutein classLog- Parameters:
newLogChute- The new value for the log chute.- See Also:
Log.setLogChute(org.apache.velocity.runtime.log.LogChute)
-
getLogChute
protected LogChute getLogChute()
Deprecated.Description copied from class:LogReturns the LogChute wrapped by this Log instance.- Overrides:
getLogChutein classLog- Returns:
- The LogChute wrapped by this Log instance.
- See Also:
Log.getLogChute()
-
setShowStackTraces
protected void setShowStackTraces(boolean showStacks)
Deprecated.- Parameters:
showStacks-
-
getShowStackTraces
public boolean getShowStackTraces()
Deprecated.- Returns:
- True if Stack traces should be shown.
-
isTraceEnabled
public boolean isTraceEnabled()
Deprecated.Description copied from class:LogReturns true if trace level messages will be printed by the LogChute.- Overrides:
isTraceEnabledin classLog- Returns:
- If trace level messages will be printed by the LogChute.
- See Also:
Log.isTraceEnabled()
-
trace
public void trace(java.lang.Object message)
Deprecated.Description copied from class:LogLog a trace message.- Overrides:
tracein classLog- See Also:
Log.trace(java.lang.Object)
-
trace
public void trace(java.lang.Object message, java.lang.Throwable t)Deprecated.Description copied from class:LogLog a trace message and accompanying Throwable.- Overrides:
tracein classLog- See Also:
Log.trace(java.lang.Object, java.lang.Throwable)
-
isDebugEnabled
public boolean isDebugEnabled()
Deprecated.Description copied from class:LogReturns true if debug level messages will be printed by the LogChute.- Overrides:
isDebugEnabledin classLog- Returns:
- True if debug level messages will be printed by the LogChute.
- See Also:
Log.isDebugEnabled()
-
debug
public void debug(java.lang.Object message)
Deprecated.Description copied from class:LogLog a debug message.- Overrides:
debugin classLog- See Also:
Log.debug(java.lang.Object)
-
debug
public void debug(java.lang.Object message, java.lang.Throwable t)Deprecated.Description copied from class:LogLog a debug message and accompanying Throwable.- Overrides:
debugin classLog- See Also:
Log.debug(java.lang.Object, java.lang.Throwable)
-
isInfoEnabled
public boolean isInfoEnabled()
Deprecated.Description copied from class:LogReturns true if info level messages will be printed by the LogChute.- Overrides:
isInfoEnabledin classLog- Returns:
- True if info level messages will be printed by the LogChute.
- See Also:
Log.isInfoEnabled()
-
info
public void info(java.lang.Object message)
Deprecated.Description copied from class:LogLog an info message.- Overrides:
infoin classLog- See Also:
Log.info(java.lang.Object)
-
info
public void info(java.lang.Object message, java.lang.Throwable t)Deprecated.Description copied from class:LogLog an info message and accompanying Throwable.- Overrides:
infoin classLog- See Also:
Log.info(java.lang.Object, java.lang.Throwable)
-
isWarnEnabled
public boolean isWarnEnabled()
Deprecated.Description copied from class:LogReturns true if warn level messages will be printed by the LogChute.- Overrides:
isWarnEnabledin classLog- Returns:
- True if warn level messages will be printed by the LogChute.
- See Also:
Log.isWarnEnabled()
-
warn
public void warn(java.lang.Object message)
Deprecated.Description copied from class:LogLog a warning message.- Overrides:
warnin classLog- See Also:
Log.warn(java.lang.Object)
-
warn
public void warn(java.lang.Object message, java.lang.Throwable t)Deprecated.Description copied from class:LogLog a warning message and accompanying Throwable.- Overrides:
warnin classLog- See Also:
Log.warn(java.lang.Object, java.lang.Throwable)
-
isErrorEnabled
public boolean isErrorEnabled()
Deprecated.Description copied from class:LogReturns true if error level messages will be printed by the LogChute.- Overrides:
isErrorEnabledin classLog- Returns:
- True if error level messages will be printed by the LogChute.
- See Also:
Log.isErrorEnabled()
-
error
public void error(java.lang.Object message)
Deprecated.Description copied from class:LogLog an error message.- Overrides:
errorin classLog- See Also:
Log.error(java.lang.Object)
-
error
public void error(java.lang.Object message, java.lang.Throwable t)Deprecated.Description copied from class:LogLog an error message and accompanying Throwable.- Overrides:
errorin classLog- See Also:
Log.error(java.lang.Object, java.lang.Throwable)
-
-