common

package
v0.0.0-...-7185231 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Retain           bool          = true
	RetainClient     bool          = false
	QoS              byte          = 2
	HADiscoveryDelay time.Duration = 500 * time.Millisecond
	MachineID        string
	LogState         = LogLevels{
		Debug:    false,
		Error:    true,
		Warn:     false,
		Critical: false,
	}
)
View Source
var CriticalLog = log.New(os.Stdout, "CRITICAL", 0)
View Source
var DebugLog = log.New(os.Stdout, "DEBUG   ", 0)
View Source
var ErrorLog = log.New(os.Stdout, "ERROR   ", 0)
View Source
var WarnLog = log.New(os.Stdout, "WARN    ", 0)

Functions

func LogDebug

func LogDebug(message ...interface{})

func LogError

func LogError(message ...interface{})

func LogWarning

func LogWarning(message ...interface{})

Types

type LogLevels

type LogLevels struct {
	Debug    bool
	Error    bool
	Warn     bool
	Critical bool
}

Jump to

Keyboard shortcuts

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