package logger

import "github.com/spiffe/go-spiffe/v2/logger"

Index

Types

type Logger

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

Logger provides logging facilities to the library.

var Null Logger = nullLogger{}

Null is a no-op logger. It is used to suppress logging and is the default logger for the library.

var Std Logger = stdLogger{}

Std is a logger that uses the Go standard log library.

func Writer

func Writer(w io.Writer) Logger

Writer provides a logger that outputs logging to the given writer.

Source Files

logger.go null.go std.go writer.go

Version
v2.1.3
Published
Mar 16, 2023
Platform
js/wasm
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.