MCPcopy
hub / github.com/dnote/dnote / write

Method write

pkg/server/log/log.go:161–172  ·  view source on GitHub ↗
(level, msg string)

Source from the content-addressed store, hash-verified

159}
160
161func (e Entry) write(level, msg string) {
162 if !shouldLog(level) {
163 return
164 }
165
166 serialized := e.formatJSON(level, msg)
167
168 _, err := fmt.Fprintln(os.Stderr, string(serialized))
169 if err != nil {
170 fmt.Fprintf(os.Stderr, "writing to stderr: %v\n", err)
171 }
172}
173
174// Debug logs a debug message without additional fields
175func Debug(msg string) {

Callers 4

DebugMethod · 0.95
InfoMethod · 0.95
WarnMethod · 0.95
ErrorMethod · 0.95

Calls 2

formatJSONMethod · 0.95
shouldLogFunction · 0.85

Tested by

no test coverage detected