Package org.djutils.logger
Class LoggerTest.StringWriter
java.lang.Object
org.djutils.logger.LoggerTest.StringWriter
- All Implemented Interfaces:
Writer
- Enclosing class:
- LoggerTest
protected static class LoggerTest.StringWriter extends Object implements Writer
...
-
Constructor Summary
Constructors Modifier Constructor Description protectedStringWriter() -
Method Summary
Modifier and Type Method Description voidclear()Nullify the last logged message (so we can distinguish a newly received message even when it is the empty string.voidclose()voidflush()Set<LogEntryValue>getRequiredLogEntryValues()StringgetResult()Return the last logged message.voidinit(Configuration configuration)voidwrite(LogEntry logEntry)
-
Constructor Details
-
StringWriter
protected StringWriter()
-
-
Method Details
-
getRequiredLogEntryValues
- Specified by:
getRequiredLogEntryValuesin interfaceWriter
-
init
-
write
-
flush
-
close
-
getResult
Return the last logged message.- Returns:
- String; the last logged message
-
clear
public void clear()Nullify the last logged message (so we can distinguish a newly received message even when it is the empty string.
-