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 $
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a new Log that wraps a PrimordialLogChute. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Log a debug message.voidDeprecated.Log a debug message and accompanying Throwable.voidDeprecated.Log an error message.voidDeprecated.Log an error message and accompanying Throwable.protected LogChuteDeprecated.Returns the LogChute wrapped by this Log instance.booleanDeprecated.voidDeprecated.Log an info message.voidDeprecated.Log an info message and accompanying Throwable.booleanDeprecated.Returns true if debug level messages will be printed by the LogChute.booleanDeprecated.Returns true if error level messages will be printed by the LogChute.booleanDeprecated.Returns true if info level messages will be printed by the LogChute.booleanDeprecated.Returns true if trace level messages will be printed by the LogChute.booleanDeprecated.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.voidDeprecated.Log a trace message.voidDeprecated.Log a trace message and accompanying Throwable.voidDeprecated.Log a warning message.voidDeprecated.Log a warning message and accompanying Throwable.Methods inherited from class org.apache.velocity.runtime.log.Log
formatFileString, formatFileString, formatFileString, formatFileString, log, log
-
Field Details
-
rlog
Deprecated.
-
-
Constructor Details
-
RuntimeLoggerLog
Deprecated.Creates a new Log that wraps a PrimordialLogChute.- Parameters:
rlog-
-
-
Method Details
-
setLogChute
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:
-
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:
-
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:
-
trace
Deprecated.Description copied from class:LogLog a trace message. -
trace
Deprecated.Description copied from class:LogLog a trace message and accompanying 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:
-
debug
Deprecated.Description copied from class:LogLog a debug message. -
debug
Deprecated.Description copied from class:LogLog a debug message and accompanying 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:
-
info
Deprecated.Description copied from class:LogLog an info message. -
info
Deprecated.Description copied from class:LogLog an info message and accompanying 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:
-
warn
Deprecated.Description copied from class:LogLog a warning message. -
warn
Deprecated.Description copied from class:LogLog a warning message and accompanying 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:
-
error
Deprecated.Description copied from class:LogLog an error message. -
error
Deprecated.Description copied from class:LogLog an error message and accompanying Throwable.
-