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

Struct DefaultLogger

log/default_logger.go:26–30  ·  view source on GitHub ↗

DefaultLogger is the default implementation of the Logger interface.

Source from the content-addressed store, hash-verified

24
25// DefaultLogger is the default implementation of the Logger interface.
26type DefaultLogger struct {
27 output io.Writer
28 eventTypes map[EventType]bool
29 logCallback func(entry *LogEntry) error
30}
31
32// NewDefaultLogger creates a new DefaultLogger instance.
33// If no output is set via SetOutput, it defaults to os.Stdout.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected