anchorelogger

package
v0.29.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL