Package io.quarkus.deployment.console
Class StartupLogCompressor
java.lang.Object
io.quarkus.deployment.console.StartupLogCompressor
- All Implemented Interfaces:
Closeable
,AutoCloseable
,BiPredicate<String,
Boolean>
special filter that can be used to compress log messages to a status line
This is useful for Dev Services to show progress without cluttering up the logs
-
Field Summary
Modifier and TypeFieldDescription(package private) final AtomicInteger
(package private) final String
(package private) final StatusLine
(package private) final Thread
-
Constructor Summary
ConstructorDescriptionStartupLogCompressor
(String name, Optional<ConsoleInstalledBuildItem> consoleInstalledBuildItem, LoggingSetupBuildItem loggingSetupBuildItem) StartupLogCompressor
(String name, Optional<ConsoleInstalledBuildItem> consoleInstalledBuildItem, LoggingSetupBuildItem loggingSetupBuildItem, Predicate<Thread> additionalThreadPredicate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiPredicate
and, negate, or
-
Field Details
-
thread
-
name
-
sl
-
toDump
-
COUNTER
-
additionalThreadPredicate
-
-
Constructor Details
-
StartupLogCompressor
public StartupLogCompressor(String name, Optional<ConsoleInstalledBuildItem> consoleInstalledBuildItem, LoggingSetupBuildItem loggingSetupBuildItem) -
StartupLogCompressor
public StartupLogCompressor(String name, Optional<ConsoleInstalledBuildItem> consoleInstalledBuildItem, LoggingSetupBuildItem loggingSetupBuildItem, Predicate<Thread> additionalThreadPredicate)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
closeAndDumpCaptured
public void closeAndDumpCaptured() -
test
- Specified by:
test
in interfaceBiPredicate<String,
Boolean>
-