log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

InitLog applies to the default log (logrus) functionality. Each process that wants to send its logs to a file by default should call InitLog only once.

Types

type JSONFormatter

type JSONFormatter struct {
	WithCallDepth int // if > 0 it will be used to find in the call stack the caller to the logging function
}

JSONFormatter is used to log messages in the standard format.

func (*JSONFormatter) Format

func (f *JSONFormatter) Format(entry *log.Entry) ([]byte, error)

Format is the standard formatter for NV-Switch Manager log messages

Jump to

Keyboard shortcuts

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