utils

package
v0.0.0-...-4f29f3d Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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 InfoJSON

func InfoJSON(v interface{})

func Infof

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

func Md5

func Md5(b []byte) string

func New

func New() *logManager

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

func NewLogger

func NewLogger() *logManager

NewLogger 实例化,供自定义

func SetLogLevel

func SetLogLevel(level Level)

func Stack

func Stack(msg 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