logs

package
v1.0.49 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 6 Imported by: 7

Documentation

Overview

Package logs 日志.

使用 zap 日志.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(args ...interface{})

func DPanicf

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

func DPanicw

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

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 GetLog added in v0.2.11

func GetLog() *zap.SugaredLogger

func Info

func Info(args ...interface{})

func Infof

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

func Infow

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

func LogName

func LogName(paths ...string) string

func NewConsoleRotate added in v0.5.48

func NewConsoleRotate(config *lumberjack.Logger) *zap.Logger

func NewDebug

func NewDebug() *zap.Logger

func NewInfo

func NewInfo() *zap.Logger

func NewJSONRotate added in v0.5.48

func NewJSONRotate(config *lumberjack.Logger) *zap.Logger

func Panic

func Panic(args ...interface{})

func Panicf

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

func Panicw

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

func RotateJSONLog added in v0.5.48

func RotateJSONLog(paths ...string)

func RotateLog

func RotateLog(paths ...string)

func SetInfoLevel

func SetInfoLevel()

func Sync

func Sync()

func Warn

func Warn(args ...interface{})

func Warnf

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

func Warnw

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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