
com.tiscover.logging.logstash.LogstashSocket Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logging Show documentation
Show all versions of logging Show documentation
Tiscover-Logging is a simple library that connects your java application directly to graphite for a numerical overview of the System and to Logstash/Elkstack for error-messages or other textual logging
package com.tiscover.logging.logstash;
import java.io.IOException;
import com.tiscover.logging.logstash.messages.LogstashMessage;
import com.tiscover.logging.observer.DefaultEnabledObserver;
import com.tiscover.logging.observer.EnabledObserver;
public class LogstashSocket extends com.tiscover.logging.AbstractLoggingSocket {
public LogstashSocket() {
this(new DefaultEnabledObserver());
}
public LogstashSocket(EnabledObserver observer) {
super(observer);
}
public void send(LogstashMessage o) throws IOException {
send(o.toSocketMessage());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy