Package org.apache.velocity.runtime.log
Class HoldingLogChute
java.lang.Object
org.apache.velocity.runtime.log.HoldingLogChute
- All Implemented Interfaces:
LogChute
- Direct Known Subclasses:
PrimordialLogSystem
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...
- Since:
- 1.5
- Version:
- $Id: HoldingLogChute.java 730039 2008-12-30 03:53:19Z byron $
-
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 TypeMethodDescriptionvoid
init
(RuntimeServices rs) Initializes this LogChute.boolean
isLevelEnabled
(int level) Tell whether or not a log level is enabled.void
Logs messages.void
Logs messages and errors.void
transferTo
(LogChute newChute) Dumps the log messages this chute is holding into a new chute
-
Field Details
-
pendingMessages
-
transferring
private volatile boolean transferring
-
-
Constructor Details
-
HoldingLogChute
HoldingLogChute()
-
-
Method Details
-
init
Description copied from interface:LogChute
Initializes this LogChute. -
log
Logs messages. All we do is store them until 'later'. -
log
Logs messages and errors. All we do is store them until 'later'. -
isLevelEnabled
public boolean isLevelEnabled(int level) Description copied from interface:LogChute
Tell whether or not a log level is enabled.- Specified by:
isLevelEnabled
in interfaceLogChute
- Returns:
- True if a level is enabled.
- See Also:
-
transferTo
Dumps the log messages this chute is holding into a new chute- Parameters:
newChute
-
-