Class SyslogAuditLogger

java.lang.Object
hudson.plugins.audit_trail.AuditLogger
hudson.plugins.audit_trail.SyslogAuditLogger
All Implemented Interfaces:
ExtensionPoint, Describable<AuditLogger>

public class SyslogAuditLogger extends AuditLogger
Default values are set in /src/main/resources/hudson/plugins/audit_trail/SyslogAuditLogger/config.jelly
Author:
Nicolas De Loof
  • Field Details

    • DEFAULT_SYSLOG_SERVER_PORT

      public static final int DEFAULT_SYSLOG_SERVER_PORT
      See Also:
    • DEFAULT_APP_NAME

      public static final String DEFAULT_APP_NAME
      See Also:
    • DEFAULT_FACILITY

      public static final com.cloudbees.syslog.Facility DEFAULT_FACILITY
    • DEFAULT_MESSAGE_FORMAT

      public static final com.cloudbees.syslog.MessageFormat DEFAULT_MESSAGE_FORMAT
    • LOGGER

      protected static final Logger LOGGER
  • Constructor Details

    • SyslogAuditLogger

      @DataBoundConstructor public SyslogAuditLogger(String syslogServerHostname, int syslogServerPort, String appName, String messageHostname, String facility, String messageFormat)
  • Method Details

    • log

      public void log(String event)
      Specified by:
      log in class AuditLogger
    • getDisplayName

      public String getDisplayName()
    • getSyslogServerHostname

      public String getSyslogServerHostname()
    • getSyslogServerPort

      public int getSyslogServerPort()
    • getAppName

      public String getAppName()
    • getMessageHostname

      public String getMessageHostname()
    • getFacility

      public String getFacility()
    • getMessageFormat

      public String getMessageFormat()
    • getNetworkProtocol

      public String getNetworkProtocol()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • trimToNull

      @Nullable public static String trimToNull(String value)
    • defaultValue

      @Nullable public static <T> T defaultValue(T value, T defaultValue)