MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / StringShort

Method StringShort

base/log_level.go:67–72  ·  view source on GitHub ↗

StringShort returns the short string representation of a log level (e.g. "DBG" or "WRN")

()

Source from the content-addressed store, hash-verified

65
66// StringShort returns the short string representation of a log level (e.g. "DBG" or "WRN")
67func (l LogLevel) StringShort() string {
68 if l >= levelCount {
69 return fmt.Sprintf("LVL(%d)", l)
70 }
71 return logLevelNamesPrint[l]
72}
73
74// MarshalText implements the TextMarshaler interface.
75func (l *LogLevel) MarshalText() (text []byte, err error) {

Callers 6

TestConsoleShouldLogFunction · 0.80
TestFileShouldLogFunction · 0.80
BenchmarkFileShouldLogFunction · 0.80
addPrefixesFunction · 0.80

Calls

no outgoing calls

Tested by 5

TestConsoleShouldLogFunction · 0.64
TestFileShouldLogFunction · 0.64
BenchmarkFileShouldLogFunction · 0.64