onLogBeforeEventInEnforce initializes logging for Enforce operation.
(rvals []interface{})
| 123 | |
| 124 | // onLogBeforeEventInEnforce initializes logging for Enforce operation. |
| 125 | func (e *Enforcer) onLogBeforeEventInEnforce(rvals []interface{}) *log.LogEntry { |
| 126 | if e.logger == nil { |
| 127 | return nil |
| 128 | } |
| 129 | logEntry := e.createEnforceLogEntry(rvals) |
| 130 | _ = e.logger.OnBeforeEvent(logEntry) |
| 131 | return logEntry |
| 132 | } |
| 133 | |
| 134 | // onLogAfterEventInEnforce finalizes logging for Enforce operation. |
| 135 | func (e *Enforcer) onLogAfterEventInEnforce(logEntry *log.LogEntry, allowed bool) { |
no test coverage detected