logger

package
v0.0.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

func Error(err error, fields ...zap.Field)

func Fatal

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

func Field

func Field(key string, value interface{}) zap.Field

func GetLogger

func GetLogger() *zap.Logger

func Info

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

func Init

func Init(encoding, logLevel string, logOutputs []string, rollbarConfig *RollbarConfig) error

func SetLevel added in v0.0.6

func SetLevel(logLevel string)

func Sync

func Sync()

func Warn

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

Types

type Logger

type Logger struct {
	*zap.Logger
	Level zap.AtomicLevel
}
var (
	Log Logger
)

type RollbarConfig

type RollbarConfig struct {
	RollbarAccessToken string
	RollbarServerRoot  string
	AppEnv             string
	Version            string
}

Jump to

Keyboard shortcuts

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