public Optional toAuditLog()

in src/main/java/com/googlesource/gerrit/plugins/auditsl4j/logsource/SSHLog.java [152:161]


  public Optional<String> toAuditLog(LoggerAudit loggerAudit) {
    return getWhen()
        .map(
            when ->
                new SshAuditEvent(
                    this.session, getAuditUser(), this.command, when, null, this.result))
        .map(
            sshAuditEvent ->
                loggerAudit.getAuditString(sshAuditEvent, TransformableAuditLogType.SshAuditEvent));
  }