logging

package
Version: v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug logs debug level messages to gomates default logger

func Debugf

func Debugf(msg string, args ...interface{})

Debugf logs formatted debug level messages to gomates default logger

func Err

func Err(msg string)

Err logs error level messages to gomates default logger

func Errf

func Errf(msg string, args ...interface{})

Errf logs formatted error level messages to gomates default logger

func Fatal

func Fatal(reason string)

Fatal logs fatal level messages to gomates default logger

func Fatalf

func Fatalf(reason string, args ...interface{})

Fatalf logs formatted fatal level messages to gomates default logger

func Info

func Info(msg string)

Info logs info level messages to gomates default logger

func Infof

func Infof(msg string, args ...interface{})

Infof logs formatted info level messages to gomates default logger

func Notice

func Notice(msg string)

Notice logs notice level messages to gomates default logger

func Noticef

func Noticef(msg string, args ...interface{})

Noticef logs formatted notice level messages to gomates default logger

func Panic

func Panic(reason string)

Panic logs formatted panic level messages to gomates default logger

func Panicf

func Panicf(reason string, args ...interface{})

Panicf logs panic level messages to gomates default logger

func ReconfigureLogger

func ReconfigureLogger(settings Settings)

ReconfigureLogger updated default logger and change priority and tags, it might also change destination, for instance start logging to syslog-server at remote host via TCP or UDP.

Types

type Settings

type Settings struct {
	Active   bool
	UDP      bool
	RAddr    string
	Tag      string
	Priority syslog.Priority
}

Settings contains information about logging level, tags and destination address.

Jump to

Keyboard shortcuts

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