MCPcopy
hub / github.com/gofiber/fiber / SetOutput

Method SetOutput

log/default.go:309–311  ·  view source on GitHub ↗

SetOutput replaces the underlying writer used by the logger.

(writer io.Writer)

Source from the content-addressed store, hash-verified

307
308// SetOutput replaces the underlying writer used by the logger.
309func (l *defaultLogger) SetOutput(writer io.Writer) {
310 l.stdlog.SetOutput(writer)
311}
312
313// Logger returns the logger instance. It can be used to adjust the logger configurations in case of need.
314func (l *defaultLogger) Logger() *log.Logger {

Callers

nothing calls this directly

Calls 1

SetOutputMethod · 0.65

Tested by

no test coverage detected