Class TriggeringOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.terracotta.angela.common.util.LogOutputStream
-
- org.terracotta.angela.common.util.TriggeringOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
public class TriggeringOutputStream extends LogOutputStream
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TriggeringOutputStreamandForward(Consumer<String> action)TriggeringOutputStreamandTriggerOn(Pattern pattern, Consumer<MatchResult> action)protected voidprocessLine(String line)Logs a line to the log system of the user.static TriggeringOutputStreamtriggerOn(Pattern pattern, Consumer<MatchResult> action)-
Methods inherited from class org.terracotta.angela.common.util.LogOutputStream
close, flush, processBuffer, write
-
Methods inherited from class java.io.OutputStream
nullOutputStream, write, write
-
-
-
-
Method Detail
-
triggerOn
public static final TriggeringOutputStream triggerOn(Pattern pattern, Consumer<MatchResult> action)
-
andTriggerOn
public final TriggeringOutputStream andTriggerOn(Pattern pattern, Consumer<MatchResult> action)
-
andForward
public final TriggeringOutputStream andForward(Consumer<String> action)
-
processLine
protected void processLine(String line)
Description copied from class:LogOutputStreamLogs a line to the log system of the user.- Specified by:
processLinein classLogOutputStream- Parameters:
line- the line to log.
-
-