command

package
v1.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RootOpts holds the log directory and log level configuration.
	RootOpts struct {
		Dir      string
		LogLevel string
	}
)

Functions

func NewFileHookWithNewlineTruncate

func NewFileHookWithNewlineTruncate(file io.Writer, level logrus.Level, formatter logrus.Formatter) *fileHook

NewFileHookWithNewlineTruncate returns a new FileHook with truncated new lines.

func SetupFileHook

func SetupFileHook(baseDir string) func()

SetupFileHook creates the base log directory and configures logrus options.

Types

This section is empty.

Jump to

Keyboard shortcuts

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