MCPcopy Create free account
hub / github.com/labstack/gommon / SetHeader

Method SetHeader

log/log.go:136–138  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

134}
135
136func (l *Logger) SetHeader(h string) {
137 l.template = l.newTemplate(h)
138}
139
140func (l *Logger) Print(i ...interface{}) {
141 l.log(0, fmt.Sprint(i...), false)

Callers 4

TestFormatFunction · 0.80
TestEmptyHeaderFunction · 0.80
TestCallerFileFunction · 0.80
SetHeaderFunction · 0.80

Calls 1

newTemplateMethod · 0.95

Tested by 3

TestFormatFunction · 0.64
TestEmptyHeaderFunction · 0.64
TestCallerFileFunction · 0.64