String returns the string representation of a logging level.
()
| 37 | |
| 38 | // String returns the string representation of a logging level. |
| 39 | func (p Level) String() string { |
| 40 | return levelNames[p] |
| 41 | } |
| 42 | |
| 43 | // LogLevel returns the log level from a string representation. |
| 44 | func LogLevel(level string) (Level, error) { |
no outgoing calls