logging

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: GPL-3.0 Imports: 3 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 struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(writer io.Writer, options Options) *Logger

func (Logger) Err

func (l Logger) Err(err error)

func (Logger) Errorf

func (l Logger) Errorf(format string, args ...interface{})

func (Logger) Infof

func (l Logger) Infof(format string, args ...interface{})

func (Logger) Infoln

func (l Logger) Infoln(msg string)

func (Logger) Resultf

func (l Logger) Resultf(format string, args ...interface{})

type Options

type Options struct {
	Silent       bool
	Colorized    bool
	ResultWriter io.Writer
}

Jump to

Keyboard shortcuts

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