logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: MIT Imports: 6 Imported by: 52

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, fields ...interface{})

Debug logs a debug message with the given fields

func Error

func Error(message string, fields ...interface{})

Error logs a debug message with the given fields

func Fatal

func Fatal(message string, fields ...interface{})

Fatal logs a message than calls os.Exit(1)

func GetLogger

func GetLogger() *zap.Logger

GetLogger get native not sugared logger

func Info

func Info(message string, fields ...interface{})

Info logs a debug message with the given fields

func ObserveLogging

func ObserveLogging(level zapcore.Level) *observer.ObservedLogs

ObserveLogging constructs a logger through the zap/zaptest/observer framework so that logs will be accessible in tests.

func Warn

func Warn(message string, fields ...interface{})

Warn logs a debug message with the given fields

Types

This section is empty.

Jump to

Keyboard shortcuts

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