logging

package
v0.0.0-...-a1f8bd1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
	Info(msg string, keysAndValues ...interface{})
	Warn(msg string, keysAndValues ...interface{})
	Error(msg string, keysAndValues ...interface{})
	Debug(msg string, keysAndValues ...interface{})
}

Logger interface for structured logging - maintains compatibility with existing githubactions code

func NewLogger

func NewLogger(component string) Logger

NewLogger creates a new logger wrapper around SC's util logger

func NewLoggerWithUtilLogger

func NewLoggerWithUtilLogger(component string, utilLogger util.Logger) Logger

NewLoggerWithUtilLogger creates a logger wrapper around an existing util.Logger

func NewNoOpLogger

func NewNoOpLogger() Logger

NewNoOpLogger creates a logger that does nothing (useful for testing)

type LoggerWrapper

type LoggerWrapper struct {
	// contains filtered or unexported fields
}

LoggerWrapper wraps SC's existing util.Logger to provide structured logging interface

func (*LoggerWrapper) Debug

func (l *LoggerWrapper) Debug(msg string, keysAndValues ...interface{})

Debug logs a debug message with structured key-value pairs

func (*LoggerWrapper) Error

func (l *LoggerWrapper) Error(msg string, keysAndValues ...interface{})

Error logs an error message with structured key-value pairs

func (*LoggerWrapper) Info

func (l *LoggerWrapper) Info(msg string, keysAndValues ...interface{})

Info logs an info message with structured key-value pairs

func (*LoggerWrapper) Warn

func (l *LoggerWrapper) Warn(msg string, keysAndValues ...interface{})

Warn logs a warning message with structured key-value pairs

type NoOpLoggerWrapper

type NoOpLoggerWrapper struct{}

NoOpLoggerWrapper wraps util.NoopLogger for compatibility

func (*NoOpLoggerWrapper) Debug

func (n *NoOpLoggerWrapper) Debug(msg string, keysAndValues ...interface{})

func (*NoOpLoggerWrapper) Error

func (n *NoOpLoggerWrapper) Error(msg string, keysAndValues ...interface{})

func (*NoOpLoggerWrapper) Info

func (n *NoOpLoggerWrapper) Info(msg string, keysAndValues ...interface{})

func (*NoOpLoggerWrapper) Warn

func (n *NoOpLoggerWrapper) Warn(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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