logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NilLogger nilLogger
)

Functions

This section is empty.

Types

type Logger added in v0.0.2

type Logger interface {
	fasthttp.Logger
	Close() error
}

Logger is an interface to logging.

func NewLogger

func NewLogger(cfg config.Log) (Logger, error)

NewLogger returns a new logger.

func NewLoggerWriteCloser added in v0.0.2

func NewLoggerWriteCloser(cfg config.Log, out io.WriteCloser) (Logger, error)

NewLoggerWriteCloser returns a new logger with out.

func NewLoggerWriter added in v0.0.2

func NewLoggerWriter(cfg config.Log, out io.Writer) (Logger, error)

NewLoggerWriter returns a new logger with out.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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