MCPcopy
hub / github.com/safing/portmaster / GetLogLevel

Function GetLogLevel

base/log/logging.go:142–144  ·  view source on GitHub ↗

GetLogLevel returns the current log level.

()

Source from the content-addressed store, hash-verified

140
141// GetLogLevel returns the current log level.
142func GetLogLevel() Severity {
143 return Severity(atomic.LoadUint32(logLevel))
144}
145
146// SetLogLevel sets a new log level. Only effective after Start().
147func SetLogLevel(level Severity) {

Callers 5

startFunction · 0.92
getLocationMethod · 0.92
registerBasicOptionsFunction · 0.92
loadLogLevelFunction · 0.92
SetLogLevelFunction · 0.85

Calls 1

SeverityTypeAlias · 0.85

Tested by

no test coverage detected