anchorelogger

package
v0.39.33 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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(slogger *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