MustName Convert the int level to the string representation and panics if the name is not valid.
()
| 150 | |
| 151 | // MustName Convert the int level to the string representation and panics if the name is not valid. |
| 152 | func (level LogLevel) MustName() LogLevelString { |
| 153 | name, err := level.Name() |
| 154 | if err != nil { |
| 155 | panic(err) |
| 156 | } |
| 157 | return name |
| 158 | } |
| 159 | |
| 160 | // String Convert the int level to the string representation. Panics if the level is not valid. |
| 161 | func (level LogLevel) String() string { |