56575859606162
return "%syslogStart{" + getFacility() + "}%nopex{}"; } @Override public SyslogOutputStream createOutputStream() throws SocketException, UnknownHostException { return new SyslogOutputStream(getSyslogHost(), getPort()); }
2829303132333435
public ResilientSyslogOutputStream(String syslogHost, int port) throws UnknownHostException, SocketException { this.syslogHost = syslogHost; this.port = port; super.os = new SyslogOutputStream(syslogHost, port); this.presumedClean = true; }
39404142434445
return "syslog ["+syslogHost+":"+port+"]"; } @Override OutputStream openNewOutputStream() throws IOException { return new SyslogOutputStream(syslogHost, port); }
133134135136137138139
logstashLayout.setJsonGeneratorDecorator(jsonGeneratorDecorator); } @Override public SyslogOutputStream createOutputStream() throws UnknownHostException, SocketException { return new SyslogOutputStream(this.getHost(), this.getPort()); }