logger

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(msg string, fields ...zap.Field)

func Debug

func Debug(msg string, fields ...zap.Field)

func Error

func Error(msg string, fields ...zap.Field)

func Fatal

func Fatal(msg string, fields ...zap.Field)

func GetLogger

func GetLogger() *zap.Logger

func GetLoggerForCron

func GetLoggerForCron(jobName string) cronLogger

GetLoggerForCron returns a struct that implements cron.Logger interface.

func Info

func Info(msg string, fields ...zap.Field)

func InitLogger

func InitLogger(logPath string, logLevel string, sentryDSN string, version string)

func Panic

func Panic(msg string, fields ...zap.Field)

func Sync

func Sync() error

func Warn

func Warn(msg string, fields ...zap.Field)

Types

This section is empty.

Jump to

Keyboard shortcuts

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