Logger is the interface used to log messages in different levels.
| 22 | |
| 23 | // Logger is the interface used to log messages in different levels. |
| 24 | type Logger interface { |
| 25 | // Fatal logs to the FATAL, ERROR, WARNING, INFO and DEBUG levels, |
| 26 | // including a stack trace of all running goroutines, then calls |
| 27 | // os.Exit(1). |
| 28 | Fatal(format string, args ...interface{}) |
| 29 | |
| 30 | // Error logs to the ERROR, WARNING, INFO and DEBUG level. |
| 31 | Error(format string, args ...interface{}) |
| 32 | |
| 33 | // Warning logs to the WARNING, INFO and DEBUG level. |
| 34 | Warning(format string, args ...interface{}) |
| 35 | |
| 36 | // Info logs to the INFO and DEBUG level. |
| 37 | Info(format string, args ...interface{}) |
| 38 | |
| 39 | // Debug logs to the DEBUG level. |
| 40 | Debug(format string, args ...interface{}) |
| 41 | } |
| 42 | |
| 43 | // getLogLevel returns the logging level defined via the KITE_LOG_LEVEL |
| 44 | // environment. It returns Info by default if no environment variable |
no outgoing calls
no test coverage detected