slog

package
v0.0.0-...-a4c7188 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dev

func Dev() (*zap.Logger, error)

func New

func New(dev bool) (*zap.Logger, error)

New returns development logger (line-based) if dev == true and prod logger (structured json) otherwise.

func Prod

func Prod() (*zap.Logger, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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