logs

package
v0.0.0-...-1b07703 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 1 more Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentDirectory

func GetCurrentDirectory() string

GetCurrentDirectory return dir of project

func GetLogger

func GetLogger() *zap.Logger

GetLogger return instance of logger

Types

type Config

type Config struct {
	LogLevel            string
	LogDir              string
	SingleFileMaxSizeMB int
	MaxBackups          int
	LogsKeepDay         int
}

Config define the config of log

Jump to

Keyboard shortcuts

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