Documentation ¶
Index ¶
- func NewFmt(level ELogLevel) QLogger
- func NewMQTT(level ELogLevel, topic, host string) QLogger
- type BaseLogger
- func (logger *BaseLogger) Debug(format string, params ...interface{})
- func (logger *BaseLogger) Error(format string, params ...interface{})
- func (logger *BaseLogger) Fatal(format string, params ...interface{})
- func (logger *BaseLogger) Info(format string, params ...interface{})
- func (logger *BaseLogger) Warn(format string, params ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseLogger ¶
type BaseLogger struct {
// contains filtered or unexported fields
}
func NewBaseLogger ¶
func NewBaseLogger(level ELogLevel, l func(level ELogLevel, format string, params []interface{})) BaseLogger
func (*BaseLogger) Debug ¶
func (logger *BaseLogger) Debug(format string, params ...interface{})
func (*BaseLogger) Error ¶
func (logger *BaseLogger) Error(format string, params ...interface{})
func (*BaseLogger) Fatal ¶
func (logger *BaseLogger) Fatal(format string, params ...interface{})
func (*BaseLogger) Info ¶
func (logger *BaseLogger) Info(format string, params ...interface{})
func (*BaseLogger) Warn ¶
func (logger *BaseLogger) Warn(format string, params ...interface{})
Click to show internal directories.
Click to hide internal directories.