Documentation ¶
Index ¶
Constants ¶
View Source
const ( DebugLevel = iota InfoLevel WarningLevel ErrorLevel )
Variables ¶
This section is empty.
Functions ¶
func SetupGlobalLoger ¶
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func New ¶
Yes this API is not perfect. But I made controller Writer the first parameter So this way compiler will catch parameter errors at compile time. In a perfect world it would be best to detect controllerWriter inside But this leads to circular dependencies. Hope to find a more pretty solution one day.
Click to show internal directories.
Click to hide internal directories.