Skip to content

Commit

Permalink
JENKINS-31189 Add setters
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrille-leclerc committed Nov 3, 2015
1 parent e7f2056 commit 5cecbb4
Showing 1 changed file with 32 additions and 0 deletions.
Expand Up @@ -260,6 +260,38 @@ public String getSyslogTransport() {
return syslogTransport == null ? null : syslogTransport.name();
}

public void setSyslogServerHostname(String syslogServerHostname) {
this.syslogServerHostname = syslogServerHostname;
}

public void setSyslogServerPort(int syslogServerPort) {
this.syslogServerPort = syslogServerPort;
}

public void setLevelFilter(String levelFilter) {
this.levelFilter = levelFilter == null ? null : Level.parse(levelFilter);
}

public void setMessageHostname(String messageHostname) {
this.messageHostname = messageHostname;
}

public void setAppName(String appName) {
this.appName = appName;
}

public void setFacility(String facility) {
this.facility = facility == null ? null : Facility.fromLabel(facility);
}

public void setSyslogTransport(String syslogTransport) {
this.syslogTransport = syslogTransport == null ? null : SyslogTransport.valueOf(syslogTransport);
}

public void setMessageFormat(String messageFormat) {
this.messageFormat = messageFormat == null ? null : MessageFormat.valueOf(messageFormat);
}

@Override
public String toString() {
return "SyslogLoggerPlugin{" +
Expand Down

0 comments on commit 5cecbb4

Please sign in to comment.