logs

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2019 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(logpath string, dev bool) (sugar *zap.SugaredLogger, err error)

NewLogger creates a default "sugared" logger based on dev toggle

func NewProcessLogger

func NewProcessLogger(l *zap.SugaredLogger, process string, fields ...interface{}) *zap.SugaredLogger

NewProcessLogger creates a new logger that sets prefixes on fields for logging a specific process

func NewTestLogger

func NewTestLogger() (sugar *zap.SugaredLogger, out *observer.ObservedLogs)

NewTestLogger bootstraps a test logger that allows interrogation of output

Types

This section is empty.

Jump to

Keyboard shortcuts

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