MCPcopy Index your code
hub / github.com/op/go-logging / String

Method String

level.go:39–41  ·  view source on GitHub ↗

String returns the string representation of a logging level.

()

Source from the content-addressed store, hash-verified

37
38// String returns the string representation of a logging level.
39func (p Level) String() string {
40 return levelNames[p]
41}
42
43// LogLevel returns the log level from a string representation.
44func LogLevel(level string) (Level, error) {

Callers 7

TestLogCalldepthFunction · 0.80
testCallpathFunction · 0.80
LogMethod · 0.80
LogMethod · 0.80
FormattedMethod · 0.80
MessageMethod · 0.80
TestLevelStringFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestLogCalldepthFunction · 0.64
testCallpathFunction · 0.64
TestLevelStringFunction · 0.64