log

package
v0.0.0-...-50e0b1d Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keysAndValues ...interface{})

Debug logs a message with some additional context with variadic key-value pairs.

func Error

func Error(msg string, keysAndValues ...interface{})

Error logs a message with some additional context with variadic key-value pairs.

func Info

func Info(msg string, keysAndValues ...interface{})

Info logs a message with some additional context with variadic key-value pairs.

func Named

func Named(name string) *zap.SugaredLogger

Named returns a named logger

func SetDebug

func SetDebug()

SetDebug log level

func SetError

func SetError()

SetError log level

func SetInfo

func SetInfo()

SetInfo log level

func SetWarn

func SetWarn()

SetWarn log level

func Warn

func Warn(msg string, keysAndValues ...interface{})

Warn logs a message with some additional context with variadic key-value pairs.

func With

func With(keysAndValues ...interface{}) *zap.SugaredLogger

With returns a logger with the given structured context

Types

This section is empty.

Jump to

Keyboard shortcuts

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