Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger interface {
Printf(format string, args ...interface{})
}
Logger specifies the interface for all log operations.
type LoggerFunc ¶
type LoggerFunc func(format string, args ...interface{})
The LoggerFunc type is an adapter to allow the use of ordinary functions as Logger. If f is a function with the appropriate signature, LoggerFunc(f) is a Logger that calls f.
func (LoggerFunc) Printf ¶
func (f LoggerFunc) Printf(format string, args ...interface{})
Printf calls f(format, args).
Click to show internal directories.
Click to hide internal directories.