StringShort returns the short string representation of a log level (e.g. "DBG" or "WRN")
()
| 65 | |
| 66 | // StringShort returns the short string representation of a log level (e.g. "DBG" or "WRN") |
| 67 | func (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. |
| 75 | func (l *LogLevel) MarshalText() (text []byte, err error) { |
no outgoing calls