Package org.apache.velocity.runtime.log
Interface LogChute
- All Known Implementing Classes:
AvalonLogChute
,AvalonLogSystem
,CommonsLogLogChute
,JdkLogChute
,Log4JLogChute
,Log4JLogSystem
,LogChuteSystem
,NullLogChute
,NullLogSystem
,PrimordialLogSystem
,ServletLogChute
,SystemLogChute
public interface LogChute
Base interface that logging systems need to implement. This
is the blessed descendant of the old LogSystem interface.
- Since:
- 1.5
- Version:
- $Id: LogChute.java 730039 2008-12-30 03:53:19Z byron $
- Author:
- Jon S. Stevens, Geir Magnusson Jr., Nathan Bubna
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
ID for debug messages.static final String
Prefix string for debug messages.static final int
ID for error messages.static final String
Prefix string for error messages.static final int
ID for info messages.static final String
Prefix string for info messages.static final int
ID for trace messages.static final String
Prefix string for trace messages.static final int
ID for warning messages.static final String
Prefix string for warn messages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(RuntimeServices rs) Initializes this LogChute.boolean
isLevelEnabled
(int level) Tell whether or not a log level is enabled.void
Send a log message from Velocity.void
Send a log message from Velocity along with an exception or error
-
Field Details
-
TRACE_PREFIX
Prefix string for trace messages.- See Also:
-
DEBUG_PREFIX
Prefix string for debug messages.- See Also:
-
INFO_PREFIX
Prefix string for info messages.- See Also:
-
WARN_PREFIX
Prefix string for warn messages.- See Also:
-
ERROR_PREFIX
Prefix string for error messages.- See Also:
-
TRACE_ID
static final int TRACE_IDID for trace messages.- See Also:
-
DEBUG_ID
static final int DEBUG_IDID for debug messages.- See Also:
-
INFO_ID
static final int INFO_IDID for info messages.- See Also:
-
WARN_ID
static final int WARN_IDID for warning messages.- See Also:
-
ERROR_ID
static final int ERROR_IDID for error messages.- See Also:
-
-
Method Details
-
init
Initializes this LogChute.- Parameters:
rs
-- Throws:
Exception
-
log
Send a log message from Velocity.- Parameters:
level
-message
-
-
log
Send a log message from Velocity along with an exception or error- Parameters:
level
-message
-t
-
-
isLevelEnabled
boolean isLevelEnabled(int level) Tell whether or not a log level is enabled.- Parameters:
level
-- Returns:
- True if a level is enabled.
-