log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sync

func Sync(logger Logger)

Sync syncs a Logger.

Types

type Logger

type Logger = zap.SugaredLogger

Logger wraps the zap.SugaredLogger and zap.Logger types.

func MustNew

func MustNew(config *env.Config) *Logger

MustNew ensure that a new Logger is created and panics if not.

func New

func New(config *env.Config) (*Logger, error)

New returns a new instance of Logger.

Jump to

Keyboard shortcuts

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