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.2 2001/09/24 21:25:30 geirm Exp $

Author:
Geir Magnusson Jr.

Nested Class Summary

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 © 2003 Apache Software Foundation. All Rights Reserved.