log

package
v0.0.0-...-7406747 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Level sets a project wide log level
	Level zerolog.Level = zerolog.InfoLevel
)

Functions

func NewLogger

func NewLogger(options ...Option) zerolog.Logger

NewLogger configures a logger.

Types

type Option

type Option func(o *Options)

Option represents an option.

func WithPretty

func WithPretty(pretty bool) Option

WithPretty sets the pretty option.

type Options

type Options struct {
	Level  zerolog.Level
	Pretty bool
}

Options are the configurable options for a Controller.

func NewOptions

func NewOptions() *Options

NewOptions returns a new Options struct.

Jump to

Keyboard shortcuts

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