zerologr

package module
v0.0.0-...-d798ee2 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2019 License: Apache-2.0 Imports: 4 Imported by: 1

README

zerologr

based on zapr and glogr

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() logr.Logger

New returns a logr.Logger which is implemented by zerolog.

func NewWithOptions

func NewWithOptions(opts Options) logr.Logger

NewWithOptions returns a logr.Logger which is implemented by zerolog.

Types

type Options

type Options struct {
	// Name is an optional name of the logger
	Name string
	// Logger is an instance of zerolog, if nil a default logger is used
	Logger *zerolog.Logger
}

Options that can be passed to NewWithOptions

Jump to

Keyboard shortcuts

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