Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
func Log(logLevel LogLevel, args ...interface{})
Log is called internally by the library to log messages
Types ¶
type LogLevel ¶
type LogLevel uint8
LogLevel is the log LogLevel
You can use the following LogLevels in your implementation: 0: Debug 1: Info 2: Warn 3: Error 4: Fatal 5: Panic
func ParseLogLevel ¶
ParseLogLevel parses a string into a LogLevel
type Logger ¶
type Logger interface { // Log logs a message at the given LogLevel. Arguments are handled in the manner of fmt.Print. Log(logLevel LogLevel, args ...interface{}) // Logf logs a message at the given LogLevel. Arguments are handled in the manner of fmt.Printf. Logf(logLevel LogLevel, format string, args ...interface{}) }
Logger is the interface that wraps the Log and Logf methods.
Click to show internal directories.
Click to hide internal directories.