MCPcopy
hub / github.com/apache/casbin / SetOutput

Method SetOutput

log/default_logger.go:43–47  ·  view source on GitHub ↗

SetOutput sets the output destination for the logger. It can be set to a buffer or any io.Writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

41// SetOutput sets the output destination for the logger.
42// It can be set to a buffer or any io.Writer.
43func (l *DefaultLogger) SetOutput(w io.Writer) {
44 if w != nil {
45 l.output = w
46 }
47}
48
49// SetEventTypes sets the event types that should be logged.
50// Only events matching these types will have IsActive set to true.

Callers 2

TestSetEventTypesFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestSetEventTypesFunction · 0.76