Package io.quarkus.test.logging
Class LoggingHandler
- java.lang.Object
-
- io.quarkus.test.logging.LoggingHandler
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
FileLoggingHandler,ServiceLoggingHandler
public abstract class LoggingHandler extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description LoggingHandler()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()protected abstract voidhandle()protected booleanisLogEnabled()protected voidlogInfo(String line)List<String>logs()booleanlogsContains(String expected)protected voidonLine(String line)protected voidonLines(String lines)protected voidonStringDifference(String newLines, String oldLines)protected voidrun()voidstartWatching()voidstopWatching()
-
-
-
Method Detail
-
handle
protected abstract void handle()
-
startWatching
public void startWatching()
-
stopWatching
public void stopWatching()
-
logsContains
public boolean logsContains(String expected)
-
flush
public void flush()
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
run
protected void run()
-
onLine
protected void onLine(String line)
-
logInfo
protected void logInfo(String line)
-
onLines
protected void onLines(String lines)
-
isLogEnabled
protected boolean isLogEnabled()
-
-