public class LogstashWriter extends Object
| Constructor and Description |
|---|
LogstashWriter(hudson.model.AbstractBuild<?,?> build,
OutputStream error) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isConnectionBroken() |
void |
write(String line)
Sends a logstash payload for a single line to the indexer.
|
void |
writeBuildLog(int maxLines)
Sends a logstash payload containing log lines from the current build.
|
public LogstashWriter(hudson.model.AbstractBuild<?,?> build,
OutputStream error)
public void write(String line)
line - Message, not nullpublic void writeBuildLog(int maxLines)
maxLines - Maximum number of lines to be written. Negative numbers mean "all lines".public boolean isConnectionBroken()
Copyright © 2004-2015. All Rights Reserved.