logger

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 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 Sync

func Sync()

func Warn

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

Types

type Logger

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

type RollbarConfig

type RollbarConfig struct {
	RollbarAccessToken string
	RollbarServerRoot  string
	AppEnv             string
	Version            string
	ChainIDs           []string
}

Jump to

Keyboard shortcuts

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