Package eu.cloudnetservice.wrapper.log
Class InternalPrintStreamLogHandler
java.lang.Object
java.util.logging.Handler
eu.cloudnetservice.common.log.AbstractHandler
eu.cloudnetservice.wrapper.log.InternalPrintStreamLogHandler
@Internal
public final class InternalPrintStreamLogHandler
extends eu.cloudnetservice.common.log.AbstractHandler
A redirect log handler, to the origin output and error stream. The LogOutputStream will replace the System.out and
System.err stream after this initialization by the Wrapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInternalPrintStreamLogHandler(@NonNull PrintStream outputStream, @NonNull PrintStream errorStream) -
Method Summary
Modifier and TypeMethodDescriptionnewInstance(@NonNull PrintStream out, @NonNull PrintStream err) voidwithFormatter(@NonNull Formatter formatter) Methods inherited from class eu.cloudnetservice.common.log.AbstractHandler
close, flushMethods inherited from class java.util.logging.Handler
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, isLoggable, reportError, setEncoding, setErrorManager, setFilter, setFormatter, setLevel
-
Field Details
-
outputStream
-
errorStream
-
-
Constructor Details
-
InternalPrintStreamLogHandler
private InternalPrintStreamLogHandler(@NonNull @NonNull PrintStream outputStream, @NonNull @NonNull PrintStream errorStream)
-
-
Method Details
-
forSystemStreams
-
newInstance
@NonNull public static @NonNull InternalPrintStreamLogHandler newInstance(@NonNull @NonNull PrintStream out, @NonNull @NonNull PrintStream err) -
publish
-
withFormatter
-