func (s *Server) EmitAuditEvent(eventType string, fields events.EventFields) {
	log.Debugf("server.EmitAuditEvent(%v)", eventType)
	alog := s.alog
	if alog != nil {
		if err := alog.EmitAuditEvent(eventType, fields); err != nil {
			log.Error(err)
		}
	} else {
		log.Warn("SSH server has no audit log")
	}
}
// EmitAuditEvent logs a given event to the audit log attached to the
// server who owns these sessions
EmitAuditEvent logs a given event to the audit log attached to the
server who owns these sessions
// EmitAuditEvent logs a given event to the audit log attached to the // server who owns these sessions
func (s *Server) EmitAuditEvent(eventType string, fields events.EventFields) {
	log.Debugf("server.EmitAuditEvent(%v)", eventType)
	alog := s.alog
	if alog != nil {
		if err := alog.EmitAuditEvent(eventType, fields); err != nil {
			log.Error(err)
		}
	} else {
		log.Warn("SSH server has no audit log")
	}
}
func ( s * Server ) EmitAuditEvent ( eventType string , fields events . EventFields ) { log . Debugf ( " " , eventType ) alog := s . alog if alog != nil { if err := alog . EmitAuditEvent ( eventType , fields ) ; err != nil { log . Error ( err ) } } else { log . Warn ( " " ) } }
EmitAuditEvent logs a given event to the audit log attached to the
server who owns these sessions
EmitAuditEvent logs a given event to the audit log attached to the server who owns these sessions