comm

package
v0.0.0-...-eb06fb6 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: LGPL-3.0 Imports: 0 Imported by: 1

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