MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / SetStringLevel

Function SetStringLevel

utils/log/logwrapper.go:223–229  ·  view source on GitHub ↗

SetStringLevel enforce current log level.

(lvl string, defaultLevel logrus.Level)

Source from the content-addressed store, hash-verified

221
222// SetStringLevel enforce current log level.
223func SetStringLevel(lvl string, defaultLevel logrus.Level) {
224 if lvl, err := ParseLevel(lvl); err != nil {
225 SetLevel(defaultLevel)
226 } else {
227 SetLevel(lvl)
228 }
229}
230
231// AddHook adds a hook to the standard logger hooks.
232func AddHook(hook logrus.Hook) {

Callers 7

mainFunction · 0.92
bgServerInitFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
TestSimpleLogFunction · 0.85
TestFatalLogFunction · 0.85

Calls 2

ParseLevelFunction · 0.85
SetLevelFunction · 0.85

Tested by 2

TestSimpleLogFunction · 0.68
TestFatalLogFunction · 0.68