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 void
finalize()
Also do a shutdown if the object is destroy()'d.void
Deprecated.This method should not be used.void
init
(RuntimeServices rs) Initializes this LogChute.boolean
isLevelEnabled
(int level) Checks to see whether the specified level is enabled.void
logs messagesvoid
logs messages and errorvoid
shutdown()
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:LogChute
Initializes 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:
isLevelEnabled
in 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
-