logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level string
const (
	Error   Level = "ERROR"
	Warning Level = "WARNING"
	Notice  Level = "NOTICE"
	Info    Level = "INFO"
	Debug   Level = "DEBUG"
)

type Logger

type Logger interface {
	Log(level Level, data string)
}

type Standard

type Standard struct {
	Logger log.Logger
}

Standard logs to a log.Logger

EX: logging.Standard{Logger: log.Default()}

func (*Standard) Log

func (s *Standard) Log(level Level, data string)

Jump to

Keyboard shortcuts

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