logger

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFmt

func NewFmt(level ELogLevel) QLogger

func NewMQTT

func NewMQTT(level ELogLevel, topic, host string) QLogger

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{})

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL