package com.l7tech.server.audit;

import com.l7tech.gateway.common.audit.AuditDetailMessage;
import com.l7tech.gateway.common.audit.AuditDetailEvent.AuditDetailWithInfo;
import com.l7tech.util.Functions.Nullary;

class ak implements Nullary<Void> {
   final String val$source;
   final AuditDetailWithInfo val$detailWithInfo;
   final AuditDetailMessage val$message;
   final AuditLogFormatter val$formatter;
   final LogOnlyAuditContext this$0;

   ak(LogOnlyAuditContext var1, String var2, AuditDetailWithInfo var3, AuditDetailMessage var4, AuditLogFormatter var5) {
      this.this$0 = var1;
      this.val$source = var2;
      this.val$detailWithInfo = var3;
      this.val$message = var4;
      this.val$formatter = var5;
   }

   public Void call() {
      this.this$0
         .a
         .notifyDetailFlushed(
            this.val$source,
            this.val$detailWithInfo.getLoggerName(),
            this.val$message,
            this.val$detailWithInfo.getDetail().getParams(),
            this.val$detailWithInfo.getDetail().getTime(),
            this.val$formatter,
            this.val$detailWithInfo.getException()
         );
      return null;
   }
}
