log

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

Event stores messages to log later, from our standard interface

type StandardLogger

type StandardLogger struct {
	*logrus.Logger
}

StandardLogger enforces specific log message formats

func NewLogger

func NewLogger() *StandardLogger

NewLogger initializes the standard logger

func (*StandardLogger) InvalidArg

func (l *StandardLogger) InvalidArg(argumentName string)

InvalidArg is a standard error message

func (*StandardLogger) InvalidArgValue

func (l *StandardLogger) InvalidArgValue(argumentName string, argumentValue string)

InvalidArgValue is a standard error message

func (*StandardLogger) IsDebug

func (l *StandardLogger) IsDebug() bool

func (*StandardLogger) MissingArg

func (l *StandardLogger) MissingArg(argumentName string)

MissingArg is a standard error message

func (*StandardLogger) SetDebugLevel

func (l *StandardLogger) SetDebugLevel()

Jump to

Keyboard shortcuts

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