MCPcopy
hub / github.com/CodisLabs/codis / String

Method String

pkg/utils/log/log.go:51–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49)
50
51func (t LogType) String() string {
52 switch t {
53 default:
54 return "[LOG]"
55 case TYPE_PANIC:
56 return "[PANIC]"
57 case TYPE_ERROR:
58 return "[ERROR]"
59 case TYPE_WARN:
60 return "[WARN]"
61 case TYPE_INFO:
62 return "[INFO]"
63 case TYPE_DEBUG:
64 return "[DEBUG]"
65 }
66}
67
68func (l LogLevel) String() string {
69 switch l {

Callers 15

initFunction · 0.45
replaceUnspecifiedIPFunction · 0.45
outputMethod · 0.45
EncodeURLFunction · 0.45
NewTokenFunction · 0.45
InfoMethod · 0.45
InfoKeySpaceMethod · 0.45
RoleMethod · 0.45
monitorGroupsCommandMethod · 0.45
TestReadFunction · 0.45
TestReadBytesFunction · 0.45
TestReadFullFunction · 0.45

Calls

no outgoing calls

Tested by 6

TestReadFunction · 0.36
TestReadBytesFunction · 0.36
TestReadFullFunction · 0.36
TestWriteFunction · 0.36
TestWriteBytesFunction · 0.36
TestWriteStringFunction · 0.36