limlog

package
v0.0.0-...-325de3d Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestMode = false

TestMode TestMode

Functions

func Debug

func Debug(msg string, fields ...zap.Field)

Debug Debug

func Error

func Error(msg string, fields ...zap.Field)

Error Error

func Info

func Info(msg string, fields ...zap.Field)

Info Info

func SetLevel

func SetLevel(l zapcore.Level)

SetLevel 设置日志登录

func Warn

func Warn(msg string, fields ...zap.Field)

Warn Warn

Types

type LIMLog

type LIMLog struct {
	// contains filtered or unexported fields
}

LIMLog TLog

func NewLIMLog

func NewLIMLog(prefix string) *LIMLog

NewLIMLog NewLIMLog

func (*LIMLog) Debug

func (t *LIMLog) Debug(msg string, fields ...zap.Field)

Debug Debug

func (*LIMLog) Error

func (t *LIMLog) Error(msg string, fields ...zap.Field)

Error Error

func (*LIMLog) Info

func (t *LIMLog) Info(msg string, fields ...zap.Field)

Info Info

func (*LIMLog) Warn

func (t *LIMLog) Warn(msg string, fields ...zap.Field)

Warn Warn

type Log

type Log interface {
	Info(msg string, fields ...zap.Field)
	Debug(msg string, fields ...zap.Field)
	Error(msg string, fields ...zap.Field)
	Warn(msg string, fields ...zap.Field)
}

Log Log

Jump to

Keyboard shortcuts

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