Documentation
¶
Index ¶
- type Logger
- func (l *Logger) Info(message string, attrs ...slog.Attr)
- func (l *Logger) LogError(operation string, err error, attrs ...slog.Attr)
- func (l *Logger) LogExecution(operation string, iteration int, message string, attrs ...slog.Attr)
- func (l *Logger) LogToolExecution(toolName string, success bool, duration time.Duration, attrs ...slog.Attr)
- func (l *Logger) Warn(message string, attrs ...slog.Attr)
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger structured logger
func NewLoggerWithConfig ¶ added in v1.6.3
func NewLoggerWithConfig(cfg *LoggerConfig) *Logger
NewLoggerWithConfig creates a new logger with specific configuration
func (*Logger) LogExecution ¶
LogExecution logs execution information
type LoggerConfig ¶ added in v1.6.3
LoggerConfig logging configuration
Click to show internal directories.
Click to hide internal directories.