MCPcopy Create free account
hub / github.com/auth0/auth0-cli / category

Method category

internal/display/logs.go:133–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133func (v *LogView) category() logCategory {
134 switch logType := v.GetType(); {
135 case strings.HasPrefix(logType, "s") || strings.HasPrefix(logType, "m"):
136 return logCategorySuccess
137 case strings.HasPrefix(logType, "w"):
138 return logCategoryWarning
139 case strings.HasPrefix(logType, "f"):
140 return logCategoryFailure
141 default:
142 return logCategoryUnknown
143 }
144}
145
146func (v *LogView) typeDesc() (typ, desc string) {
147 chunks := strings.Split(v.TypeName(), "(")

Callers 2

ExtrasMethod · 0.95
typeDescMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected