org.apache.velocity.runtime.log
Class PrimordialLogSystem
java.lang.Object
org.apache.velocity.runtime.log.PrimordialLogSystem
- All Implemented Interfaces:
- LogChute, LogSystem
Deprecated. Use HoldingLogChute instead!
public class PrimordialLogSystem
- extends java.lang.Object
- implements LogSystem
Pre-init logger. I believe that this was suggested by
Carsten Ziegeler and
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.
Method Summary |
void |
dumpLogMessages(LogSystem newLogger)
Deprecated. use transferTo(LogChute newChute) |
void |
init(RuntimeServices rs)
Initializes this LogChute. |
boolean |
isLevelEnabled(int level)
Tell whether or not a log level is enabled. |
void |
log(int level,
java.lang.String message)
Logs messages. |
void |
log(int level,
java.lang.String message,
java.lang.Throwable t)
Logs messages and errors. |
void |
logVelocityMessage(int level,
java.lang.String message)
Deprecated. Use log(level, message). |
void |
transferTo(LogChute newChute)
Dumps the log messages this chute is holding into a new chute |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.velocity.runtime.log.LogSystem |
init |
PrimordialLogSystem
public PrimordialLogSystem()
- Deprecated.
logVelocityMessage
public void logVelocityMessage(int level,
java.lang.String message)
- Deprecated. Use log(level, message).
- Specified by:
logVelocityMessage
in interface LogSystem
- 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:
LogChute
- Initializes this LogChute.
- Specified by:
init
in interface LogChute
- 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'.
- Specified by:
log
in interface LogChute
- Parameters:
level
- severity levelmessage
- complete error message
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'.
- Specified by:
log
in interface LogChute
- Parameters:
level
- severity levelmessage
- complete error messaget
- the accompanying java.lang.Throwable
isLevelEnabled
public boolean isLevelEnabled(int level)
- Description copied from interface:
LogChute
- Tell whether or not a log level is enabled.
- Specified by:
isLevelEnabled
in interface LogChute
- 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
-
Copyright © 2000-2012. All Rights Reserved.