Logger

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go-logger

go-logger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogPath

func GetLogPath() string

获取日志路径

func GetLogger

func GetLogger() *logrus.Logger

获取logger

func InitJsonLogger

func InitJsonLogger(logPath *string)

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-06-28 09:20:20

func InitLogger

func InitLogger(logType, logPath *string)

初始化日志

func InitTextLogger

func InitTextLogger(logPath *string)

*

  • @Author yNsLuHan
  • @Description:
  • @Time 2021-06-28 09:20:20

Types

This section is empty.

Jump to

Keyboard shortcuts

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