LowercaseColorLevelEncoder serializes a Level to a lowercase string and adds coloring. For example, InfoLevel is serialized to "info" and colored blue.
(l Level, enc PrimitiveArrayEncoder)
| 51 | // LowercaseColorLevelEncoder serializes a Level to a lowercase string and adds coloring. |
| 52 | // For example, InfoLevel is serialized to "info" and colored blue. |
| 53 | func LowercaseColorLevelEncoder(l Level, enc PrimitiveArrayEncoder) { |
| 54 | s, ok := _levelToLowercaseColorString[l] |
| 55 | if !ok { |
| 56 | s = _unknownLevelColor.Add(l.String()) |
| 57 | } |
| 58 | enc.AppendString(s) |
| 59 | } |
| 60 | |
| 61 | // CapitalLevelEncoder serializes a Level to an all-caps string. For example, |
| 62 | // InfoLevel is serialized to "INFO". |
nothing calls this directly
no test coverage detected
searching dependent graphs…