String returns the string representation of the log level.
()
| 26 | |
| 27 | // String returns the string representation of the log level. |
| 28 | func (l Level) String() string { |
| 29 | switch l { |
| 30 | case LevelDebug: |
| 31 | return "DEBUG" |
| 32 | case LevelInfo: |
| 33 | return "INFO" |
| 34 | case LevelError: |
| 35 | return "ERROR" |
| 36 | default: |
| 37 | return "UNKNOWN" |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Logger implements the interfaces.Logger interface with configurable output and levels. |
| 42 | type Logger struct { |
no outgoing calls