String Convert the int level to the string representation. Panics if the level is not valid.
()
| 159 | |
| 160 | // String Convert the int level to the string representation. Panics if the level is not valid. |
| 161 | func (level LogLevel) String() string { |
| 162 | return string(level.MustName()) |
| 163 | } |
| 164 | |
| 165 | // Validate if the log level has a valid value |
| 166 | func (level LogLevel) Validate() error { |