logger

package
v0.0.0-...-799489d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...LoggerOption) logger.Logger

func Nop

func Nop() logger.Logger

Types

type LoggerOption

type LoggerOption func(opts *LoggerOptions)

func FormatLoggerOption

func FormatLoggerOption(format logger.LogFormat) LoggerOption

func LevelLoggerOption

func LevelLoggerOption(level logger.LogLevel) LoggerOption

func OutputLoggerOption

func OutputLoggerOption(out io.Writer) LoggerOption

type LoggerOptions

type LoggerOptions struct {
	Output io.Writer
	Format logger.LogFormat
	Level  logger.LogLevel
}

Jump to

Keyboard shortcuts

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