Package org.apache.velocity.runtime.log
Class RuntimeLoggerLog
java.lang.Object
org.apache.velocity.runtime.log.Log
org.apache.velocity.runtime.log.RuntimeLoggerLog
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
ConstructorsConstructorDescriptionDeprecated.Creates a new Log that wraps a PrimordialLogChute. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Log a debug message.void
Deprecated.Log a debug message and accompanying Throwable.void
Deprecated.Log an error message.void
Deprecated.Log an error message and accompanying Throwable.protected LogChute
Deprecated.Returns the LogChute wrapped by this Log instance.boolean
Deprecated.void
Deprecated.Log an info message.void
Deprecated.Log an info message and accompanying Throwable.boolean
Deprecated.Returns true if debug level messages will be printed by the LogChute.boolean
Deprecated.Returns true if error level messages will be printed by the LogChute.boolean
Deprecated.Returns true if info level messages will be printed by the LogChute.boolean
Deprecated.Returns true if trace level messages will be printed by the LogChute.boolean
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
Deprecated.Log a trace message.void
Deprecated.Log a trace message and accompanying Throwable.void
Deprecated.Log a warning message.void
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 Details
-
RuntimeLoggerLog
Deprecated.Creates a new Log that wraps a PrimordialLogChute.- Parameters:
rlog
-
-
-
Method Details
-
setLogChute
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:
-
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:
-
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:
-
trace
Deprecated.Description copied from class:Log
Log a trace message. -
trace
Deprecated.Description copied from class:Log
Log a trace message and accompanying 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:
-
debug
Deprecated.Description copied from class:Log
Log a debug message. -
debug
Deprecated.Description copied from class:Log
Log a debug message and accompanying 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:
-
info
Deprecated.Description copied from class:Log
Log an info message. -
info
Deprecated.Description copied from class:Log
Log an info message and accompanying 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:
-
warn
Deprecated.Description copied from class:Log
Log a warning message. -
warn
Deprecated.Description copied from class:Log
Log a warning message and accompanying 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:
-
error
Deprecated.Description copied from class:Log
Log an error message. -
error
Deprecated.Description copied from class:Log
Log an error message and accompanying Throwable.
-