MCPcopy Index your code
hub / github.com/apache/casbin / onLogAfterEvent

Method onLogAfterEvent

util_log.go:35–39  ·  view source on GitHub ↗

onLogAfterEvent calls OnAfterEvent on the logger if it exists and logEntry is not nil.

(logEntry *log.LogEntry)

Source from the content-addressed store, hash-verified

33
34// onLogAfterEvent calls OnAfterEvent on the logger if it exists and logEntry is not nil.
35func (e *Enforcer) onLogAfterEvent(logEntry *log.LogEntry) {
36 if e.logger != nil && logEntry != nil {
37 _ = e.logger.OnAfterEvent(logEntry)
38 }
39}
40
41// onLogAfterEventWithError calls OnAfterEvent with an error if logger and logEntry exist.
42func (e *Enforcer) onLogAfterEventWithError(logEntry *log.LogEntry, err error) {

Callers 1

Calls 1

OnAfterEventMethod · 0.65

Tested by

no test coverage detected