logger

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 2 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 struct {
	// contains filtered or unexported fields
}

Logger structured logger

func NewLogger

func NewLogger() *Logger

NewLogger creates a new logger

func (*Logger) Info

func (l *Logger) Info(message string, attrs ...slog.Attr)

Info logs informational message

func (*Logger) LogError

func (l *Logger) LogError(operation string, err error, attrs ...slog.Attr)

LogError logs error information

func (*Logger) LogExecution

func (l *Logger) LogExecution(operation string, iteration int, message string, attrs ...slog.Attr)

LogExecution logs execution information

func (*Logger) LogToolExecution

func (l *Logger) LogToolExecution(toolName string, success bool, duration time.Duration, attrs ...slog.Attr)

LogToolExecution logs tool execution information

Jump to

Keyboard shortcuts

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