log

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: BSD-3-Clause Imports: 2 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FianoLogger added in v2.8.0

type FianoLogger struct {
	Backend    logger.Logger
	LogAsLevel logger.Level
}

FianoLogger is an implementation of a fiano/pkg/log.Logger based on go-belt's Logger. Fiano is pretty noisy on low-important problems, so we enforce another logging level.

func NewFianoLogger added in v2.8.0

func NewFianoLogger(log logger.Logger, logAsLevel logger.Level) *FianoLogger

NewFianoLogger returns a new instance of FianoLogger.

Argument "log" is the actual logger used to log, and all non-fatal the logs are logged with the specified logging level "logAsLevel".

func (FianoLogger) Errorf added in v2.8.0

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

func (FianoLogger) Fatalf added in v2.8.0

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

func (FianoLogger) Warnf added in v2.8.0

func (l FianoLogger) Warnf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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