Class LogMessageRecordingAppender
- java.lang.Object
-
- com.atlassian.confluence.impl.logging.LogMessageRecordingAppender
-
public final class LogMessageRecordingAppender extends Object
Registers a consumer ofLogEvent
s viaLogConsumerService
and records all error events in a collection.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENABLED_SYSPROP
-
Constructor Summary
Constructors Constructor Description LogMessageRecordingAppender(LogConsumerService logConsumerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearRecordedMessages()
Collection<String>
getRecordedMessages()
-
-
-
Field Detail
-
ENABLED_SYSPROP
public static final String ENABLED_SYSPROP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LogMessageRecordingAppender
public LogMessageRecordingAppender(LogConsumerService logConsumerService)
-
-
Method Detail
-
getRecordedMessages
public Collection<String> getRecordedMessages()
-
clearRecordedMessages
public void clearRecordedMessages()
-
-