logger

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Start added in v1.1.0

func (l *Logger) Start() error

func (*Logger) Stop added in v1.1.0

func (l *Logger) Stop() 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