logger

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Info  = "info"
	Debug = "debug"
	Error = "error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FilePath string `json:"file_path"`
	Backups  int    `json:"backups"`
	Level    string `json:"level"`
}

func GetLoggerConfig

func GetLoggerConfig() *Config

func NewLoggerConfig

func NewLoggerConfig() *Config

type Logger

type Logger struct {
	Config *Config
}

Jump to

Keyboard shortcuts

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