Documentation
¶
Overview ¶
The point of this package is to create a layer of abstraction on top of your favorite Go logging library, so that you can use your favorite logging library in Trinkets. A valid Logger implementation needs only 2 methods: * Info(string, ...interface{}) * Error(string, ...interface{})
To enable this you would use:
logger.SetupLogBuilder(func(name string) logger.Logger { return your.Logger(name) })
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NewLogger logBuilderType
NewLogger builder function
Functions ¶
func SetupLogBuilder ¶
func SetupLogBuilder(b logBuilderType)
SetupLogBuilder helper is used for setting up the log builder function
Types ¶
Click to show internal directories.
Click to hide internal directories.