logging

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = logging.Config

Config is a struct representation of the `log` field in the config file

type Level

type Level = logging.Level

Level ...

func ToLevel

func ToLevel(l string) (Level, error)

ToLevel ...

type Log

type Log struct {
	logging.Logger
}

Log is a wrapper struct for the shell output log

func New

func New(config Config) (*Log, error)

New ...

func (*Log) SetLevel

func (l *Log) SetLevel(out Output, lvl Level)

SetLevel ...

type Output

type Output int

Output ...

const (
	Terminal Output = iota
	LogFile
	All
)

Enum ...

func ToOutput

func ToOutput(s string) (Output, error)

ToOutput ...

func (Output) String

func (o Output) String() string

Jump to

Keyboard shortcuts

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