logging

package
v0.0.0-...-662d0f3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Console

func Console(a ...interface{}) (n int, err error)

Console writes to stdout if the console env var exists

func NewLogger

func NewLogger(logLevel string) (*zap.SugaredLogger, error)

NewLogger returns a zap sugared logger configured with json format and caller id

func NewLoggerWithEncoding

func NewLoggerWithEncoding(logLevel, zapEncoding string) (*zap.SugaredLogger, error)

NewLoggerWithEncoding returns a zap sugared logger configured with provided format, e.g. console or json, and caller id

Types

This section is empty.

Jump to

Keyboard shortcuts

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