logger

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT, MIT Imports: 1 Imported by: 0

README

go-logger

分级控制的日志管理器

Documentation

Index

Constants

View Source
const (
	NoLogType = iota
	ErrorLogType
	WarningLogType
	InfoLogType
	InvalidLogType // 非法的日志类型
)

日志信息级别

Variables

This section is empty.

Functions

func Error

func Error(v ...interface{})

Error 错误日志

func Info

func Info(v ...interface{})

Info 消息日志

func SetGrade

func SetGrade(grade string)

SetGrade 设置等级

func Warning

func Warning(v ...interface{})

Warning 警告日志

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL