MCPcopy
hub / github.com/TarsCloud/TarsGo / LogWriter

Interface LogWriter

tars/util/rogger/logwriter.go:20–23  ·  view source on GitHub ↗

LogWriter is interface for different writer.

Source from the content-addressed store, hash-verified

18
19// LogWriter is interface for different writer.
20type LogWriter interface {
21 Write(v []byte)
22 NeedPrefix() bool
23}
24
25// ConsoleWriter writes the logs to the console.
26type ConsoleWriter struct {

Callers 12

ZipkinHttpMiddlewareFunction · 0.65
BuildHttpHandlerMethod · 0.65
req2ByteMethod · 0.65
rsp2ByteMethod · 0.65
hashKeyMethod · 0.65
mainFunction · 0.65
SendFunction · 0.65
writeLineMethod · 0.65
DyeingWritefMethod · 0.65
TraceMethod · 0.65
writeLineMethod · 0.65

Implementers 4

RemoteTimeWritertars/remotelogger.go
ConsoleWritertars/util/rogger/logwriter.go
RollFileWritertars/util/rogger/logwriter.go
DateWritertars/util/rogger/logwriter.go

Calls

no outgoing calls

Tested by

no test coverage detected