Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultLogger ¶
type DefaultLogger struct {
// contains filtered or unexported fields
}
DefaultLogger is the implementation for a Logger using golang log.
func (*DefaultLogger) EnableLog ¶
func (l *DefaultLogger) EnableLog(enable bool)
func (*DefaultLogger) IsEnabled ¶
func (l *DefaultLogger) IsEnabled() bool
func (*DefaultLogger) Print ¶
func (l *DefaultLogger) Print(v ...interface{})
func (*DefaultLogger) Printf ¶
func (l *DefaultLogger) Printf(format string, v ...interface{})
type Logger ¶
type Logger interface { //EnableLog controls whether print the message. EnableLog(bool) //IsEnabled returns if logger is enabled. IsEnabled() bool //Print formats using the default formats for its operands and logs the message. Print(...interface{}) //Printf formats according to a format specifier and logs the message. Printf(string, ...interface{}) }
Logger is the logging interface implementation.
Click to show internal directories.
Click to hide internal directories.