logging

package
v0.0.0-...-996fa4a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = log.New(io.Discard, "", 0)

Discard is the discard logger.

View Source
var Logger = NewStdErr()

Logger is the logger we use.

Functions

func LogAction

func LogAction(context string, action string)

LogAction logs The action with a tag.

func LogError

func LogError(context string, action string, err error)

LogError logs the error as a string.

func LogTarget

func LogTarget(context, action string, target interface{})

LogTarget logs The action with a tag.

Types

type Logging

type Logging interface {
	config.Provider

	// Printf logs a formatted log line.
	Printf(format string, v ...interface{})
}

Logging represents a logging contract.

func NewStdErr

func NewStdErr() Logging

NewStdErr creates a new default stderr logger.

Jump to

Keyboard shortcuts

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