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

Function NewDefaultLogger

log/default_logger.go:34–39  ·  view source on GitHub ↗

NewDefaultLogger creates a new DefaultLogger instance. If no output is set via SetOutput, it defaults to os.Stdout.

()

Source from the content-addressed store, hash-verified

32// NewDefaultLogger creates a new DefaultLogger instance.
33// If no output is set via SetOutput, it defaults to os.Stdout.
34func NewDefaultLogger() *DefaultLogger {
35 return &DefaultLogger{
36 output: os.Stdout,
37 eventTypes: make(map[EventType]bool),
38 }
39}
40
41// SetOutput sets the output destination for the logger.
42// It can be set to a buffer or any io.Writer.

Callers 2

TestSetEventTypesFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestSetEventTypesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…