logger

package module
v0.0.0-...-dce75c0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

启用

    logging := logger.Logging{}
	logging.File = "./log.log"
	logging.Level = "debug"
	logger.InitLogger(&logging)

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log = logrus.New()

Functions

func InitLogger

func InitLogger(logging *Logging)

Types

type Logging

type Logging struct {
	File  string `properties:"file"`
	Level string `properties:"level,default=info"`
}

Jump to

Keyboard shortcuts

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