Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/labstack/gommon
/ SetLevel
Method
SetLevel
log/log.go:117–119 ·
view source on GitHub ↗
(level Lvl)
Source
from the content-addressed store, hash-verified
115
}
116
117
func
(l *Logger) SetLevel(level Lvl) {
118
atomic.StoreUint32(&l.level, uint32(level))
119
}
120
121
func
(l *Logger) Output() io.Writer {
122
return
l.output
Callers
6
test
Function · 0.80
TestJSON
Function · 0.80
TestStringWithQuotes
Function · 0.80
TestEmptyHeader
Function · 0.80
TestCallerFile
Function · 0.80
SetLevel
Function · 0.80
Calls
no outgoing calls
Tested by
5
test
Function · 0.64
TestJSON
Function · 0.64
TestStringWithQuotes
Function · 0.64
TestEmptyHeader
Function · 0.64
TestCallerFile
Function · 0.64