logger

package module
v0.0.0-...-3b3331b Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

README

logger

网上教程里面的golang下logger 用来在其它模块使用,了解一下github下面各个模块相互的引用关系

Documentation

Index

Constants

View Source
const (
	LevelFatal = iota
	LevelError
	LevelWarning
	LevelInfo
	LevelDebug
)

Variables

This section is empty.

Functions

func Check

func Check(s string, err error)

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Info

func Info(v ...interface{})

func Infof

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

func New

func New() *logManager

New 实例化,供外部直接调用 log.XXXX

func NewLogger

func NewLogger() *logManager

NewLogger 实例化,供自定义

func SetLogLevel

func SetLogLevel(level Level)

func SetLogModel

func SetLogModel(model string)

func Warn

func Warn(v ...interface{})

func Warnf

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

Types

type Level

type Level int

Jump to

Keyboard shortcuts

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