logger

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLoggerLevel added in v1.0.1

func GetLoggerLevel(name string) log.Level

获取日志等级

func Logger

func Logger() *log.Entry

日志 Logger().Debug(msg string)

func Manager

func Manager(logPath string, level string) *log.Entry

日志 Debug | Info | Warn | Error | Fatal Debugf | Infof | Warnf | Errorf | Fatalf | Trace

func SetLoggerFile added in v1.0.1

func SetLoggerFile(file string)

设置日志文件

func SetLoggerLevel added in v1.0.1

func SetLoggerLevel(name string)

设置日志等级

Types

type Fields

type Fields = log.Fields

Jump to

Keyboard shortcuts

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