Documentation ¶
Overview ¶
Package log contains the singleton object and helper functions for facilitating logging within the syft library.
Index ¶
- Variables
- func Debug(args ...interface{})
- func Debugf(format string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(format string, args ...interface{})
- func Info(args ...interface{})
- func Infof(format string, args ...interface{})
- func Nested(fields ...interface{}) logger.Logger
- func Trace(args ...interface{})
- func Tracef(format string, args ...interface{})
- func Warn(args ...interface{})
- func Warnf(format string, args ...interface{})
- func WithFields(fields ...interface{}) logger.MessageLogger
Constants ¶
This section is empty.
Variables ¶
var Log logger.Logger = discard.New()
Log is the singleton used to facilitate logging internally within syft
Functions ¶
func Debug ¶
func Debug(args ...interface{})
Debug logs the given arguments at the debug logging level.
func Debugf ¶
func Debugf(format string, args ...interface{})
Debugf takes a formatted template string and template arguments for the debug logging level.
func Error ¶ added in v0.7.0
func Error(args ...interface{})
Error logs the given arguments at the error logging level.
func Errorf ¶
func Errorf(format string, args ...interface{})
Errorf takes a formatted template string and template arguments for the error logging level.
func Infof ¶
func Infof(format string, args ...interface{})
Infof takes a formatted template string and template arguments for the info logging level.
func Nested ¶ added in v0.60.0
func Nested(fields ...interface{}) logger.Logger
Nested returns a new logger with hard coded key-value pairs
func Trace ¶ added in v0.60.0
func Trace(args ...interface{})
Trace logs the given arguments at the trace logging level.
func Tracef ¶ added in v0.60.0
func Tracef(format string, args ...interface{})
Tracef takes a formatted template string and template arguments for the trace logging level.
func Warn ¶ added in v0.7.0
func Warn(args ...interface{})
Warn logs the given arguments at the warning logging level.
func Warnf ¶ added in v0.7.0
func Warnf(format string, args ...interface{})
Warnf takes a formatted template string and template arguments for the warning logging level.
func WithFields ¶ added in v0.60.0
func WithFields(fields ...interface{}) logger.MessageLogger
WithFields returns a message logger with multiple key-value fields.
Types ¶
This section is empty.