public interface MessageAppender
Modifier and Type | Method and Description |
---|---|
MessageAppender |
append(MessageBuilder message)
Append a child to the underlying message.
|
default org.slf4j.Logger |
asLogger()
Logger that appends messages to the underlying message. |
void |
close()
Close the underlying message.
|
static MessageAppender |
getActiveBlock()
Returns the "active" block in the current "message thread".
|
static MessageAppender |
getActiveBlock(String threadId)
Returns the active block in the specified message thread.
|
static org.slf4j.Logger |
getActiveBlockLogger()
Logger that appends messages to the active block at the time of the log calls. |
MessageAppender append(MessageBuilder message)
void close()
default org.slf4j.Logger asLogger()
Logger
that appends messages to the underlying message.static MessageAppender getActiveBlock()
owner
("job") and thread
.
The active block is the portion of the process currently in progress. Whenever a new MessageImpl
is created it becomes the new active block of that thread, until it is closed,
and if its parent belongs to the same thread it then becomes the active block.
This method assumes that different jobs are run in different threads.static MessageAppender getActiveBlock(String threadId)
JobProgressAppender
class which receives
log messages with "message-thread" info attached to them through the MDC
mechanism.static org.slf4j.Logger getActiveBlockLogger()
Logger
that appends messages to the active block at the time of the log calls.Copyright © 2010–2024 The DAISY Consortium. All rights reserved.