Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
136
func
(l *Logger) SetHeader(h string) {
137
l.template = l.newTemplate(h)
138
}
139
140
func
(l *Logger) Print(i ...
interface
{}) {
141
l.log(0, fmt.Sprint(i...), false)
Callers
4
TestFormat
Function · 0.80
TestEmptyHeader
Function · 0.80
TestCallerFile
Function · 0.80
SetHeader
Function · 0.80
Calls
1
newTemplate
Method · 0.95
Tested by
3
TestFormat
Function · 0.64
TestEmptyHeader
Function · 0.64
TestCallerFile
Function · 0.64