logbase

package
v0.0.0-...-29e02a0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

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 Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Exit

func Exit()

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init(cfg *logcore.Config) *logcore.AppLogger

func MustGetLogger

func MustGetLogger(names ...string) *logcore.AppLogger

func Panic

func Panic(args ...interface{})

func Panicf

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

func SetDefaultFilePath

func SetDefaultFilePath(path string)

var atomConsole = zap.NewAtomicLevel() var atomFile = zap.NewAtomicLevel()

func SetLogger

func SetLogger(logger *logcore.AppLogger) error

不初始化log,但引入外部的log 注意: 这里针对更改loglevel有问题。

func Warn

func Warn(args ...interface{})

func Warnf

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

func ZapLog

func ZapLog(logger *zap.Logger, level string, msg string)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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