public class InMemoryLogger extends DefaultLogger
threshold| Constructor and Description |
|---|
InMemoryLogger()
Uses
Channel.INFO as a default threshold. |
InMemoryLogger(Channel threshold) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(String message)
Check if one of the stored messages contain the given text
|
Queue<? extends Map.Entry<Channel,String>> |
getMessages()
Get all stored messages
|
protected void |
internalLog(Channel channel,
String message)
Internal method used by
DefaultLogger to send processed message to the final implementation. |
exception, log, setThreshold, toPrintStreampublic InMemoryLogger(Channel threshold)
public InMemoryLogger()
Channel.INFO as a default threshold.protected void internalLog(Channel channel, String message)
DefaultLoggerDefaultLogger to send processed message to the final implementation.internalLog in class DefaultLoggerchannel - the channel to log tomessage - the message to logpublic boolean contains(String message)
message - the text to search forCopyright © 2021. All rights reserved.