Documentation
¶
Overview ¶
Package log contains the singleton object and helper functions for facilitating logging within the syft library.
Index ¶
- func CloseAndLogError(closer io.Closer, location string)
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Get() logger.Logger
- func Info(args ...any)
- func Infof(format string, args ...any)
- func Nested(fields ...any) logger.Logger
- func Set(l logger.Logger)
- func Trace(args ...any)
- func Tracef(format string, args ...any)
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- func WithFields(fields ...any) logger.MessageLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseAndLogError ¶ added in v0.86.0
func Debugf ¶
Debugf takes a formatted template string and template arguments for the debug logging level.
func Error ¶ added in v0.4.0
func Error(args ...any)
Error logs the given arguments at the error logging level.
func Errorf ¶
Errorf takes a formatted template string and template arguments for the error logging level.
func Infof ¶
Infof takes a formatted template string and template arguments for the info logging level.
func Trace ¶ added in v0.54.0
func Trace(args ...any)
Trace logs the given arguments at the trace logging level.
func Tracef ¶ added in v0.54.0
Tracef takes a formatted template string and template arguments for the trace logging level.
func Warn ¶ added in v0.4.0
func Warn(args ...any)
Warn logs the given arguments at the warning logging level.
func Warnf ¶
Warnf takes a formatted template string and template arguments for the warning logging level.
func WithFields ¶ added in v0.54.0
func WithFields(fields ...any) logger.MessageLogger
WithFields returns a message logger with multiple key-value fields.
Types ¶
This section is empty.