org.apache.velocity.runtime.log

Interface LogSystem

Known Implementing Classes:
AvalonLogSystem, ClassloaderChangeTest, EventHandlingTestCase, ExternalLoggerTest, Log4JLogSystem, NullLogSystem, PrimordialLogSystem, SimpleLog4JLogSystem

public interface LogSystem

Base interface that Logging systems need to implement.
Version:
$Id: LogSystem.java,v 1.7.10.1 2004/03/03 23:22:56 geirm Exp $
Authors:
Jon S. Stevens
Geir Magnusson Jr.

Field Summary

static int
DEBUG_ID
Prefix for debug messages.
static boolean
DEBUG_ON
static int
ERROR_ID
Prefix for error messages.
static int
INFO_ID
Prefix for info messages.
static int
WARN_ID
Prefix for warning messages.

Method Summary

void
init(RuntimeServices rs)
init()
void
logVelocityMessage(int level, String message)
Send a log message from Velocity.

Field Details

DEBUG_ID

public static final int DEBUG_ID
Prefix for debug messages.
Field Value:
0

DEBUG_ON

public static final boolean DEBUG_ON
Field Value:
true

ERROR_ID

public static final int ERROR_ID
Prefix for error messages.
Field Value:
3

INFO_ID

public static final int INFO_ID
Prefix for info messages.
Field Value:
1

WARN_ID

public static final int WARN_ID
Prefix for warning messages.
Field Value:
2

Method Details

init

public void init(RuntimeServices rs)
            throws Exception
init()

logVelocityMessage

public void logVelocityMessage(int level,
                               String message)
Send a log message from Velocity.

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