logs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(template 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(template string, args ...interface{})

func Errorw

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Fatalw

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

func Get

func Get(lgr string) *zap.SugaredLogger

func GetGorm

func GetGorm(lgrName string) glogger.Interface

func Infof

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

func Infow

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

func JSON

func JSON(v interface{}) string

JSON format to json

func Named

func Named(name string) *zap.SugaredLogger

func NewAliyunSlsSyncer

func NewAliyunSlsSyncer(cfg config.AliyunSLSConfig) zapcore.WriteSyncer

NewAliyunSlsSyncer 阿里云日志服务

func NewWorkwxSyncer

func NewWorkwxSyncer(wxKey string) zapcore.WriteSyncer

NewWorkwxSyncer 企业微信日志

func ReloadConfig

func ReloadConfig(module string, cfg config.LogsConfig) error

ReloadConfig .

func RequestLogger

func RequestLogger(reqid string) *zap.SugaredLogger

func SetLevel

func SetLevel(lvl zapcore.Level)

func String

func String(v string) *string

String is a helper routine that allocates a new string value to store v and returns a pointer to it.

func Sync

func Sync() error

func Warn

func Warn(args ...interface{})

func Warnf

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

func Warnw

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

func With

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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