comm

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2020 License: LGPL-3.0 Imports: 0 Imported by: 30

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogConfiguration = &LogConfig{PrintLog: true, IsDebug: true, DataDir: "log"}

LogConfiguration is the Configuration of log

Functions

This section is empty.

Types

type LogConfig

type LogConfig struct {
	// If IsDebug is true, the log level will be DebugLevel, otherwise it is InfoLevel
	IsDebug bool `json:"isDebug"`

	// If PrintLog is true, all logs will be printed in the console, otherwise they will be stored in the file.
	PrintLog bool `json:"printLog"`

	// DataDir default log directory in temp folder
	DataDir string `json:"-"`
}

LogConfig is the Configuration of log

Jump to

Keyboard shortcuts

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