Documentation
¶
Index ¶
- type SlogAdapter
- func (s *SlogAdapter) Debug(args ...interface{})
- func (s *SlogAdapter) Debugf(format string, args ...interface{})
- func (s *SlogAdapter) Error(args ...interface{})
- func (s *SlogAdapter) Errorf(format string, args ...interface{})
- func (s *SlogAdapter) GetOutput() io.Writer
- func (s *SlogAdapter) Info(args ...interface{})
- func (s *SlogAdapter) Infof(format string, args ...interface{})
- func (s *SlogAdapter) Nested(fields ...interface{}) logger.Logger
- func (s *SlogAdapter) SetOutput(_ io.Writer)
- func (s *SlogAdapter) Trace(args ...interface{})
- func (s *SlogAdapter) Tracef(format string, args ...interface{})
- func (s *SlogAdapter) Warn(args ...interface{})
- func (s *SlogAdapter) Warnf(format string, args ...interface{})
- func (s *SlogAdapter) WithFields(fields ...interface{}) logger.MessageLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlogAdapter ¶
type SlogAdapter struct {
// contains filtered or unexported fields
}
SlogAdapter wraps a standard Go `*slog.Logger` to implement Anchore's proprietary logging interface, which is consumed by Syft and Grype.
func NewSlogAdapter ¶
func NewSlogAdapter(logger *slog.Logger) *SlogAdapter
func (*SlogAdapter) Debug ¶
func (s *SlogAdapter) Debug(args ...interface{})
func (*SlogAdapter) Debugf ¶
func (s *SlogAdapter) Debugf(format string, args ...interface{})
func (*SlogAdapter) Error ¶
func (s *SlogAdapter) Error(args ...interface{})
func (*SlogAdapter) Errorf ¶
func (s *SlogAdapter) Errorf(format string, args ...interface{})
func (*SlogAdapter) GetOutput ¶
func (s *SlogAdapter) GetOutput() io.Writer
func (*SlogAdapter) Info ¶
func (s *SlogAdapter) Info(args ...interface{})
func (*SlogAdapter) Infof ¶
func (s *SlogAdapter) Infof(format string, args ...interface{})
func (*SlogAdapter) Nested ¶
func (s *SlogAdapter) Nested(fields ...interface{}) logger.Logger
func (*SlogAdapter) SetOutput ¶
func (s *SlogAdapter) SetOutput(_ io.Writer)
func (*SlogAdapter) Trace ¶
func (s *SlogAdapter) Trace(args ...interface{})
func (*SlogAdapter) Tracef ¶
func (s *SlogAdapter) Tracef(format string, args ...interface{})
func (*SlogAdapter) Warn ¶
func (s *SlogAdapter) Warn(args ...interface{})
func (*SlogAdapter) Warnf ¶
func (s *SlogAdapter) Warnf(format string, args ...interface{})
func (*SlogAdapter) WithFields ¶
func (s *SlogAdapter) WithFields(fields ...interface{}) logger.MessageLogger
Click to show internal directories.
Click to hide internal directories.