Documentation
¶
Index ¶
- func Error(message string, attrs ...slog.Attr)
- func Info(message string, attrs ...slog.Attr)
- func LogError(operation string, err error, attrs ...slog.Attr)
- func LogExecution(operation string, iteration int, message string, attrs ...slog.Attr)
- func LogToolExecution(toolName string, success bool, duration time.Duration, attrs ...slog.Attr)
- func SetGlobalLogger(l *Logger)
- func Warn(message string, attrs ...slog.Attr)
- type Logger
- func (l *Logger) Error(message string, attrs ...slog.Attr)
- 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 ¶
func LogExecution ¶ added in v1.6.5
LogExecution logs execution information using the global logger
func LogToolExecution ¶ added in v1.6.5
LogToolExecution logs tool execution information using the global logger
func SetGlobalLogger ¶ added in v1.6.5
func SetGlobalLogger(l *Logger)
SetGlobalLogger sets the global logger instance
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger structured logger
func GetLogger ¶ added in v1.6.5
func GetLogger() *Logger
GetLogger returns the global logger instance
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.