logger

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapError added in v1.6.0

func WrapError(err1 error, prefix string, err2 error) error

Types

type ConfigLog

type ConfigLog struct {
	Env     string `yaml:"env"`
	LogFile string `yaml:"log"`
}

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func MustNew

func MustNew(cfg *ConfigLog) *Logger

func (*Logger) Down

func (l *Logger) Down() error

func (*Logger) Write

func (l *Logger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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