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 ¶
Writer provides a logger that outputs logging to the given writer.
Source Files ¶
logger.go null.go std.go writer.go
- Version
- v2.5.0 (latest)
- Published
- Jan 31, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 months ago –
Tools for package owners.