org.apache.velocity.runtime.log

Class PrimordialLogSystem

Implemented Interfaces:
LogSystem

public class PrimordialLogSystem
extends java.lang.Object
implements LogSystem

Pre-init logger. I believe that this was suggested by Carsten Ziegeler <cziegeler@sundn.de> and Jeroen C. van Gelderen. If this isn't correct, let me know as this was a good idea...
Version:
$Id: PrimordialLogSystem.java,v 1.4.4.1 2004/03/03 23:22:56 geirm Exp $
Author:
Geir Magnusson Jr.

Field Summary

private Vector
pendingMessages
private RuntimeServices
rsvc

Fields inherited from interface org.apache.velocity.runtime.log.LogSystem

DEBUG_ID, DEBUG_ON, ERROR_ID, INFO_ID, WARN_ID

Constructor Summary

PrimordialLogSystem()
default CTOR.

Method Summary

void
dumpLogMessages(LogSystem newLogger)
dumps the log messages this logger is holding into a new logger
void
init(RuntimeServices rs)
void
logVelocityMessage(int level, String message)
logs messages.

Field Details

pendingMessages

private Vector pendingMessages

rsvc

private RuntimeServices rsvc

Constructor Details

PrimordialLogSystem

public PrimordialLogSystem()
default CTOR.

Method Details

dumpLogMessages

public void dumpLogMessages(LogSystem newLogger)
dumps the log messages this logger is holding into a new logger

init

public void init(RuntimeServices rs)
            throws Exception
Specified by:
init in interface LogSystem

logVelocityMessage

public void logVelocityMessage(int level,
                               String message)
logs messages. All we do is store them until 'later'.
Specified by:
logVelocityMessage in interface LogSystem
Parameters:
level - severity level
message - complete error message

Copyright B) 2002 Apache Software Foundation. All Rights Reserved.