log

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLogLevel

func ParseLogLevel(logLevel string) logrus.Level

Types

type Log

type Log struct {
	*logrus.Entry
}

Log implements the default logger.

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Errorf(format string, args ...interface{})
}

func New

func New(cfg config.AgentConfig) (Logger, error)

New returns the default log using the passed in configuration.

type NullLog

type NullLog struct{}

func (*NullLog) Debugf

func (n *NullLog) Debugf(format string, args ...interface{})

func (*NullLog) Errorf

func (n *NullLog) Errorf(format string, args ...interface{})

func (*NullLog) Infof

func (n *NullLog) Infof(format string, args ...interface{})

Jump to

Keyboard shortcuts

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