logger

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logLevel string) (*zap.SugaredLogger, error)

NewLogger returns a zap sugared logger configured with json format and caller id

func NewLoggerWithEncoding

func NewLoggerWithEncoding(logLevel, zapEncoding string) (*zap.SugaredLogger, error)

NewLoggerWithEncoding returns a zap sugared logger configured with provided format, e.g. console or json, and caller id

Types

This section is empty.

Jump to

Keyboard shortcuts

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