|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IRogMessageLogger
Represents a message logger.
This interface defines a message logger. Message loggers are used to persist messages to a log.
Method Summary | |
---|---|
void |
close()
Close a message logger. |
void |
flush(boolean sync)
Flush cached message to the log. |
String |
getName()
Get the name of a logger. |
void |
log(IRogMessage message)
Log a message. |
void |
log(IRogMessage message,
boolean commitEnd)
Log a message. |
void |
open()
Open a message logger. |
Method Detail |
---|
String getName()
void open() throws Exception
Exception
void log(IRogMessage message, boolean commitEnd)
message
- The message to log.commitEnd
- Indicates whether to mark this log entry as
the end of an application commit leg.Note: The logger can be configured to log a message is a detached manner i.e. upon return from this call, the message may still be in flight for logging. Therefore, a message being logged CANNOT be modified after return from this call.
void log(IRogMessage message)
message
- The message to log.
Invoking this method is equivalent to invoking log(message, false)
void flush(boolean sync)
sync
- Indicates if the flush should sync to the durable mediavoid close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |