logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 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