log

package
v0.0.0-...-19bee3a Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(args ...interface{})

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

func Desugar

func Desugar() *zap.Logger

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

Infof formats according to a format specifier and returns the resulting string.

func Infow

func Infow(msg string, keysAndValues ...interface{})

func Logger

func Logger() *zap.SugaredLogger

func NewSentryCore

func NewSentryCore(cfg SentryCoreConfig) zapcore.Core

NewSentryCore 生成Core对象

func Panic

func Panic(args ...interface{})

func Panicf

func Panicf(format string, args ...interface{})

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

Panicw logs a message with some additional context, then panics. The variadic key-value pairs are treated as they are in With.

func SetConfig

func SetConfig(b bool, p, lv string)

SetConfig 设置参数

func Warn

func Warn(args ...interface{})

func WarnDB

func WarnDB(tx *gorm.DB, args ...interface{}) (err error)

func WarnErr

func WarnErr(err error, args ...interface{})

func Warnf

func Warnf(format string, args ...interface{})

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

func With

func With(args ...interface{}) *zap.SugaredLogger

Types

type SentryCoreConfig

type SentryCoreConfig struct {
	Tags              map[string]string
	DisableStacktrace bool
	Level             zapcore.Level
	FlushTimeout      time.Duration
}

SentryCoreConfig 定义 Sentry Core 的配置参数.

Jump to

Keyboard shortcuts

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