logging

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	// Emergency: system is unusable
	Emergencyf(f string, v ...interface{})
	// Alert: action must be taken immediately
	Alertf(f string, v ...interface{})
	// Critical: critical conditions
	Criticalf(f string, v ...interface{})
	// Error: error conditions
	Errorf(f string, v ...interface{})
	// Warning: warning conditions
	Warningf(f string, v ...interface{})
	// Notice: normal but significant condition
	Noticef(f string, v ...interface{})
	// Informational: informational messages
	Informationalf(f string, v ...interface{})
	// Debug: debug-level messages
	Debugf(f string, v ...interface{})
}

Logger is the interface that wraps the basic Logging methods.

Logger follows the Syslog Message Severities in RFC5424.

func NewLogger

func NewLogger() Logger

Jump to

Keyboard shortcuts

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