log

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf logs to the DEBUG log.

func Errorf

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

Errorf logs to the ERROR, WARN, and INFO logs.

func Fatalf

func Fatalf(format string, args ...interface{})

Fatalf logs an error message and then exits

func Infof

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

Infof logs to the INFO log.

func LogrusLogger

func LogrusLogger() *logrus.Logger

LogrusLogger returns the logrus logger used by the underlying logger.

func PanicExit

func PanicExit(err error)

PanicExit logs error and exits

func Warningf

func Warningf(format string, args ...interface{})

Warningf logs to the WARN and INFO logs.

Types

type Interface

type Interface interface {
	logrus.FieldLogger
	With(key string, value interface{}) Interface
}

Interface is logger interface.

func Logger

func Logger() Interface

Logger returns underlying logger.

Jump to

Keyboard shortcuts

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