tlog

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogLevelAll = iota
	LogLevelDebug
	LogLevelInfo
	LogLevelError
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger() log.Logger

func GetLoggerWithPackageName

func GetLoggerWithPackageName() log.Logger

func GetOutput

func GetOutput() io.Writer

func UseConsoleAppender

func UseConsoleAppender(level int)

@title UseConsoleAppender @description 设置日志输出到标准输出,建议程序启动时设置,程序默认输出到标准输出 @param level 日志级别

func UseRollingFileAppender

func UseRollingFileAppender(filename string, level, maxSize, maxBackup, maxAge int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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