Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/netdata/netdata
/ New
Function
New
src/go/logger/logger.go:23–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
21
var
pluginAttr = slog.String(
"plugin"
, executable.Name)
22
23
func
New() *Logger {
24
return
newLogger(os.Stderr, isTerm, 4)
25
}
26
27
func
NewWithWriter(w io.Writer) *Logger {
28
if
w == nil {
Callers
4
TestContextWithLoggerAndLoggerFromContext
Function · 0.70
TestNew
Function · 0.70
With
Method · 0.70
logger.go
File · 0.70
Calls
1
newLogger
Function · 0.85
Tested by
2
TestContextWithLoggerAndLoggerFromContext
Function · 0.56
TestNew
Function · 0.56