Package org.apache.velocity.runtime.log
Class PrimordialLogSystem
- java.lang.Object
-
- org.apache.velocity.runtime.log.PrimordialLogSystem
-
public class PrimordialLogSystem extends java.lang.Object implements LogSystem
Deprecated.Use HoldingLogChute instead!Pre-init logger. I believe that this was suggested by Carsten Ziegelerand Jeroen C. van Gelderen. If this isn't correct, let me know as this was a good idea... - Version:
- $Id: PrimordialLogSystem.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Geir Magnusson Jr.
-
-
Field Summary
-
Fields inherited from interface org.apache.velocity.runtime.log.LogChute
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX
-
-
Constructor Summary
Constructors Constructor Description PrimordialLogSystem()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voiddumpLogMessages(LogSystem newLogger)Deprecated.use transferTo(LogChute newChute)voidinit(RuntimeServices rs)Initializes this LogChute.booleanisLevelEnabled(int level)Tell whether or not a log level is enabled.voidlog(int level, java.lang.String message)Logs messages.voidlog(int level, java.lang.String message, java.lang.Throwable t)Logs messages and errors.voidlogVelocityMessage(int level, java.lang.String message)Deprecated.Use log(level, message).voidtransferTo(LogChute newChute)Dumps the log messages this chute is holding into a new chute
-
-
-
Method Detail
-
logVelocityMessage
public void logVelocityMessage(int level, java.lang.String message)Deprecated.Use log(level, message).- Specified by:
logVelocityMessagein interfaceLogSystem- Parameters:
level-message-
-
dumpLogMessages
public void dumpLogMessages(LogSystem newLogger)
Deprecated.use transferTo(LogChute newChute)- Parameters:
newLogger-
-
init
public void init(RuntimeServices rs) throws java.lang.Exception
Description copied from interface:LogChuteInitializes this LogChute.- Specified by:
initin interfaceLogChute- Throws:
java.lang.Exception- See Also:
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
-
log
public void log(int level, java.lang.String message)Logs messages. All we do is store them until 'later'.
-
log
public void log(int level, java.lang.String message, java.lang.Throwable t)Logs messages and errors. All we do is store them until 'later'.
-
isLevelEnabled
public boolean isLevelEnabled(int level)
Description copied from interface:LogChuteTell whether or not a log level is enabled.- Specified by:
isLevelEnabledin interfaceLogChute- Returns:
- True if a level is enabled.
- See Also:
LogChute.isLevelEnabled(int)
-
transferTo
public void transferTo(LogChute newChute)
Dumps the log messages this chute is holding into a new chute- Parameters:
newChute-
-
-