slog

package
v1.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: BSD-3-Clause Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf xlog.Debugf

func Debugln

func Debugln(v ...interface{})

Debugln xlog.Debug

func Errorf

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

Errorf ...

func Errorln

func Errorln(v ...interface{})

Errorln ...

func Fatalf

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

Fatalf ...

func Fatalln

func Fatalln(v ...interface{})

Fatalln ...

func Infof

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

Infof ...

func Infoln

func Infoln(v ...interface{})

Infoln ...

func Init

func Init(logdir string, fileName string, level string)

Init init applog in xlog

func LogStat

func LogStat() (map[string]int64, []string)

LogStat TODO: 统计日志打印情况,后期都可以去掉

func Panicf

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

Panicf ...

func Panicln

func Panicln(v ...interface{})

Panicln ...

func Sync

func Sync()

Sync sync of app logger

func Tracef

func Tracef(format string, v ...interface{})

Tracef xlog.Debugf

func Traceln

func Traceln(v ...interface{})

Traceln xlog.Debug

func Warnf

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

Warnf ...

func Warnln

func Warnln(v ...interface{})

Warnln ...

Types

type InfoLogger added in v1.4.11

type InfoLogger struct {
}

func GetInfoLogger added in v1.4.11

func GetInfoLogger() *InfoLogger

func (*InfoLogger) Printf added in v1.4.11

func (m *InfoLogger) Printf(format string, items ...interface{})

type Logger

type Logger struct {
}

Logger 注入其他基础库的日志句柄

func GetLogger

func GetLogger() *Logger

func (*Logger) Printf

func (m *Logger) Printf(format string, items ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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