Package org.apache.velocity.runtime.log
Class AvalonLogChute
java.lang.Object
org.apache.velocity.runtime.log.AvalonLogChute
- All Implemented Interfaces:
LogChute
- Direct Known Subclasses:
AvalonLogSystem
Implementation of a Avalon logger.
- Since:
- 1.5
- Version:
- $Id: AvalonLogChute.java 730039 2008-12-30 03:53:19Z byron $
- Author:
- Jon S. Stevens, Geir Magnusson Jr., Nathan Bubna
-
Field Summary
FieldsFields inherited from interface org.apache.velocity.runtime.log.LogChute
DEBUG_ID, DEBUG_PREFIX, ERROR_ID, ERROR_PREFIX, INFO_ID, INFO_PREFIX, TRACE_ID, TRACE_PREFIX, WARN_ID, WARN_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfinalize()Also do a shutdown if the object is destroy()'d.voidDeprecated.This method should not be used.voidinit(RuntimeServices rs) Initializes this LogChute.booleanisLevelEnabled(int level) Checks to see whether the specified level is enabled.voidlogs messagesvoidlogs messages and errorvoidshutdown()Close all destinations
-
Field Details
-
AVALON_LOGGER
- See Also:
-
AVALON_LOGGER_FORMAT
- See Also:
-
AVALON_LOGGER_LEVEL
- See Also:
-
-
Constructor Details
-
AvalonLogChute
public AvalonLogChute()
-
-
Method Details
-
init
Description copied from interface:LogChuteInitializes this LogChute. -
init
Deprecated.This method should not be used. It is here only to provide backwards compatibility for the deprecated AvalonLogSystem class, in case anyone used it and this method directly.- Parameters:
file-- Throws:
Exception
-
log
logs messages -
log
logs messages and error -
isLevelEnabled
public boolean isLevelEnabled(int level) Checks to see whether the specified level is enabled.- Specified by:
isLevelEnabledin interfaceLogChute- Parameters:
level-- Returns:
- True if the specified level is enabled.
-
finalize
Also do a shutdown if the object is destroy()'d. -
shutdown
public void shutdown()Close all destinations
-