logger

package
v0.0.0-...-8e67534 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Log, FileOnly, ArmaOnly zerolog.Logger

Functions

func InitLoggers

func InitLoggers(o *LoggerOptionsType)

console writer

func RotateLogs

func RotateLogs()

Types

type LoggerOptionsType

type LoggerOptionsType struct {
	// LogPath is the path to the log file
	Path string
	// LogAddonName is the name of the addon that will be used to send log messages to arma
	AddonName string
	// LogExtensionName is the name of the extension that will be used to send log messages to arma
	ExtensionName string
	// ExtensionVersion is the version of this extension
	ExtensionVersion string
	// LogDebug determines if we should send Debug level messages to file & arma
	Debug bool
	// LogTrace is used to determine if file should receive trace level, regardless of debug
	Trace bool
}
var ActiveOptions *LoggerOptionsType = &LoggerOptionsType{}

Jump to

Keyboard shortcuts

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