logging

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalLogFile         *LogFile
	GlobalLogFileOverride string
)

Functions

func CloseLogFiles

func CloseLogFiles()

func ConfigureLogrusFor

func ConfigureLogrusFor(logctx logging.Context, human bool, logfile *LogFile)

Types

type LogFile

type LogFile struct {
	// contains filtered or unexported fields
}

func GetLogFileFor

func GetLogFileFor(path string, fs vfs.FileSystem) *LogFile

func LogFileFor

func LogFileFor(path string, fs vfs.FileSystem) (*LogFile, error)

func (*LogFile) Close

func (l *LogFile) Close() error

func (*LogFile) File

func (l *LogFile) File() vfs.File

type LoggingConfiguration

type LoggingConfiguration struct {
	LogFileName string        `json:"logFileName"`
	LogConfig   logcfg.Config `json:"logConfig"`
	Json        bool          `json:"json,omitempty"`
}

LoggingConfiguration describes logging configuration for a slave executables like plugins.

func (*LoggingConfiguration) Apply

func (c *LoggingConfiguration) Apply() error

Jump to

Keyboard shortcuts

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