MCPcopy Create free account
hub / github.com/ankorstore/yokai / SetOutput

Method SetOutput

httpserver/logger.go:41–46  ·  view source on GitHub ↗

SetOutput sets the output writer.

(w io.Writer)

Source from the content-addressed store, hash-verified

39
40// SetOutput sets the output writer.
41func (e *EchoLogger) SetOutput(w io.Writer) {
42 e.mutex.Lock()
43 defer e.mutex.Unlock()
44
45 e.logger.Output(w)
46}
47
48// Prefix returns the log prefix.
49func (e *EchoLogger) Prefix() string {

Callers 2

TestOutputFunction · 0.95

Calls 1

OutputMethod · 0.80

Tested by 2

TestOutputFunction · 0.76