Skip to content

syslog-java-client-1.1.0

Compare
Choose a tag to compare
@cyrille-leclerc cyrille-leclerc released this 06 Sep 11:53
· 141 commits to master since this release
  • Make it configurable to end messages with CR LF for TCPSender thanks to @jasonparallel
tcpSyslogMessageSender. setPostfix("\r\n"); // \r\n is the default, can be overridden
  • Modified Facility to use digits 0 - 23 instead of multiplied by 8, to conform with syslog spec thanks to @dhsmith1001

  • Add support for structured data thanks to @bbergquist0930

        SyslogMessage message = new SyslogMessage()
                .withTimestamp(cal.getTimeInMillis())
                .withAppName("my_app")
                .withHostname("myserver.example.com")
                .withFacility(Facility.USER)
                .withSeverity(Severity.INFORMATIONAL)
                .withTimestamp(cal.getTimeInMillis())
                .withMsg("a syslog message")
                .withSDElement(
                   new SDElement(
                      "exampleSDID@32473", 
                      new SDParam("iut", "3"), 
                      new SDParam("eventSource", "Application"), 
                      new SDParam("eventID", "1011")));