Documentation
¶
Overview ¶
Package logger handles structured logging for agents
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultLogDir ¶
func GetDefaultLogDir() string
GetDefaultLogDir returns the default log directory (~/.maxam/logs)
func ProjectNameFromPath ¶
ProjectNameFromPath converts a directory path to a project name. Example: /home/user/my-project -> home_user_my-project
Types ¶
type Entry ¶
type Entry struct {
Timestamp time.Time
Agent string
Input string
Thinking string
Output string
Duration time.Duration
}
Entry represents a log entry
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger handles logging for a specific agent
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages loggers for all agents
func NewManager ¶
NewManager creates a new logger manager with project-specific subdirectory. baseDir: logs directory (e.g., ~/.maxam/logs) projectDir: working directory for the project (used to generate project name)
Click to show internal directories.
Click to hide internal directories.