Documentation
¶
Index ¶
- type Logger
- type LoggerWrapper
- type NoOpLoggerWrapper
- func (n *NoOpLoggerWrapper) Debug(msg string, keysAndValues ...interface{})
- func (n *NoOpLoggerWrapper) Error(msg string, keysAndValues ...interface{})
- func (n *NoOpLoggerWrapper) Info(msg string, keysAndValues ...interface{})
- func (n *NoOpLoggerWrapper) Warn(msg string, keysAndValues ...interface{})
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 NewLoggerWithUtilLogger ¶
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{})