zaputils

package
v0.0.0-...-5f47e43 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const TcpSinkCheckSec = 5
View Source
const TcpSinkConnTimeout = 100 * time.Millisecond

Variables

This section is empty.

Functions

func ConfigureDevLogger

func ConfigureDevLogger() *zap.Logger

func ConfigureProdLogger

func ConfigureProdLogger() *zap.Logger

func ConfigureZapGlobals

func ConfigureZapGlobals()

func NewPrettyConsoleEncoder

func NewPrettyConsoleEncoder(cfg zapcore.EncoderConfig) zapcore.Encoder

NewConsoleEncoder creates an encoder whose output is designed for human - rather than machine - consumption. It serializes the core log entry data (message, level, timestamp, etc.) in a plain-text format and leaves the structured context as pretty-printed multiline JSON.

Additional functionality includes easily-readable stack traces.

Note that while pretty-printing is useful in development, it's bad for production

Types

This section is empty.

Jump to

Keyboard shortcuts

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