log

package
v0.0.0-...-46ca7f5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(cnf *config.LogConfig) func()

Init creates a connection with the syslog server. It returns a cleanup function meant to be called when resources can be released. As in:

cleanup := log.Init()
defer cleanup()

func Spit

func Spit(format string, v ...any)

Spit will send given format and values through the log channel. It does nothing if log is deactivated. It does nothing if `Init` was not called first.

func SpitList

func SpitList(msg string, l *list.List)

SpitList will Spit the given msg and then also each element of given list.

func Toggle

func Toggle()

Toggle will toggle the enable/disable status of the log. When disabled, any call to Spit is a noop.

Types

This section is empty.

Jump to

Keyboard shortcuts

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