logging

package
v0.0.0-...-f1cdb32 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *logrus.Logger = logrus.New()

Logger is a logger

Functions

func ConfigLogger

func ConfigLogger(config *LogConfig)

ConfigLogger configure log settings

Types

type LogConfig

type LogConfig struct {
	LogLevel   logrus.Level
	Filename   string
	MaxSize    int
	MaxBackups int
	MaxAge     int
}

LogConfig is the config for logger

Jump to

Keyboard shortcuts

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