public class LogstashWriter extends Object
| Constructor and Description |
|---|
LogstashWriter(hudson.model.Run<?,?> run,
OutputStream error,
hudson.model.TaskListener listener,
Charset charset) |
| Modifier and Type | Method and Description |
|---|---|
Charset |
getCharset()
gets the charset that Jenkins is using during this build.
|
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.Run<?,?> run,
OutputStream error,
hudson.model.TaskListener listener,
Charset charset)
public Charset getCharset()
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 © 2016–2018. All rights reserved.