logger

package
Version: v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLogger added in v0.1.3

func CreateLogger(logLevel string)

CreateLogger with specific log level

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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL