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 $
-
-
Field Summary
Fields Modifier and Type Field Description private RuntimeLogger
rlog
Deprecated.
-
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 void
debug(java.lang.Object message)
Deprecated.Log a debug message.void
debug(java.lang.Object message, java.lang.Throwable t)
Deprecated.Log a debug message and accompanying Throwable.void
error(java.lang.Object message)
Deprecated.Log an error message.void
error(java.lang.Object message, java.lang.Throwable t)
Deprecated.Log an error message and accompanying Throwable.protected LogChute
getLogChute()
Deprecated.Returns the LogChute wrapped by this Log instance.boolean
getShowStackTraces()
Deprecated.void
info(java.lang.Object message)
Deprecated.Log an info message.void
info(java.lang.Object message, java.lang.Throwable t)
Deprecated.Log an info message and accompanying Throwable.boolean
isDebugEnabled()
Deprecated.Returns true if debug level messages will be printed by the LogChute.boolean
isErrorEnabled()
Deprecated.Returns true if error level messages will be printed by the LogChute.boolean
isInfoEnabled()
Deprecated.Returns true if info level messages will be printed by the LogChute.boolean
isTraceEnabled()
Deprecated.Returns true if trace level messages will be printed by the LogChute.boolean
isWarnEnabled()
Deprecated.Returns true if warn level messages will be printed by the LogChute.protected void
setLogChute(LogChute newLogChute)
Deprecated.Updates the LogChute wrapped by this Log instance.protected void
setShowStackTraces(boolean showStacks)
Deprecated.void
trace(java.lang.Object message)
Deprecated.Log a trace message.void
trace(java.lang.Object message, java.lang.Throwable t)
Deprecated.Log a trace message and accompanying Throwable.void
warn(java.lang.Object message)
Deprecated.Log a warning message.void
warn(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
-
-
-
-
Field Detail
-
rlog
private RuntimeLogger rlog
Deprecated.
-
-
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:Log
Updates the LogChute wrapped by this Log instance.- Overrides:
setLogChute
in 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:Log
Returns the LogChute wrapped by this Log instance.- Overrides:
getLogChute
in 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:Log
Returns true if trace level messages will be printed by the LogChute.- Overrides:
isTraceEnabled
in 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:Log
Log a trace message.- Overrides:
trace
in 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:Log
Log a trace message and accompanying Throwable.- Overrides:
trace
in classLog
- See Also:
Log.trace(java.lang.Object, java.lang.Throwable)
-
isDebugEnabled
public boolean isDebugEnabled()
Deprecated.Description copied from class:Log
Returns true if debug level messages will be printed by the LogChute.- Overrides:
isDebugEnabled
in 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:Log
Log a debug message.- Overrides:
debug
in 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:Log
Log a debug message and accompanying Throwable.- Overrides:
debug
in classLog
- See Also:
Log.debug(java.lang.Object, java.lang.Throwable)
-
isInfoEnabled
public boolean isInfoEnabled()
Deprecated.Description copied from class:Log
Returns true if info level messages will be printed by the LogChute.- Overrides:
isInfoEnabled
in 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:Log
Log an info message.- Overrides:
info
in 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:Log
Log an info message and accompanying Throwable.- Overrides:
info
in classLog
- See Also:
Log.info(java.lang.Object, java.lang.Throwable)
-
isWarnEnabled
public boolean isWarnEnabled()
Deprecated.Description copied from class:Log
Returns true if warn level messages will be printed by the LogChute.- Overrides:
isWarnEnabled
in 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:Log
Log a warning message.- Overrides:
warn
in 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:Log
Log a warning message and accompanying Throwable.- Overrides:
warn
in classLog
- See Also:
Log.warn(java.lang.Object, java.lang.Throwable)
-
isErrorEnabled
public boolean isErrorEnabled()
Deprecated.Description copied from class:Log
Returns true if error level messages will be printed by the LogChute.- Overrides:
isErrorEnabled
in 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:Log
Log an error message.- Overrides:
error
in 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:Log
Log an error message and accompanying Throwable.- Overrides:
error
in classLog
- See Also:
Log.error(java.lang.Object, java.lang.Throwable)
-
-