logging

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProductionConsole

func NewProductionConsole(suppressTimestamps bool, logLevel string) (*zap.Logger, error)

func NewProductionConsoleConfig

func NewProductionConsoleConfig(suppressTimestamps bool, logLevel string) (config zap.Config, err error)

NewProductionConsoleConfig is a reasonable production logging configuration. Logging is enabled at InfoLevel and above.

It uses a console encoder, writes to standard error, and enables sampling. Stacktraces are automatically included on logs of ErrorLevel and above.

func NewProductionConsoleEncoderConfig

func NewProductionConsoleEncoderConfig(suppressTimestamps bool) zapcore.EncoderConfig

NewProductionConsoleEncoderConfig returns an opinionated EncoderConfig for production console environments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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