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 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.
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,
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 Exception
- Description copied from interface:
LogChute
- Initializes this LogChute.
- Specified by:
init
in interface LogChute
- Throws:
Exception
- See Also:
LogChute.init(org.apache.velocity.runtime.RuntimeServices)
log
public void log(int level,
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,
String message,
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-2007 The Apache Software Foundation. All Rights Reserved.