Documentation
¶
Overview ¶
Package logging provides real-time log output derived from session events. The session JSON is THE forensic record. This package provides optional real-time console output for monitoring, derived from session events.
Index ¶
- type Fields
- type Level
- type Logger
- func (l *Logger) Debug(msg string, fields ...map[string]interface{})
- func (l *Logger) Error(msg string, fields ...map[string]interface{})
- func (l *Logger) ExecutionComplete(workflow string, duration time.Duration, status string)
- func (l *Logger) ExecutionStart(workflow string)
- func (l *Logger) GoalComplete(name string, duration time.Duration)
- func (l *Logger) GoalStart(name string)
- func (l *Logger) Info(msg string, fields ...map[string]interface{})
- func (l *Logger) PhaseComplete(phase, goal, step string, duration time.Duration, result string)
- func (l *Logger) PhaseStart(phase, goal, step string)
- func (l *Logger) ReconcilePhase(goal, step string, triggers []string, escalate bool)
- func (l *Logger) SecurityDecision(tool, action, reason string)
- func (l *Logger) SecurityWarning(msg string, fields map[string]interface{})
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) SetOutput(w io.Writer)
- func (l *Logger) SupervisePhase(goal, step string, verdict, reason string)
- func (l *Logger) SupervisorVerdict(goal, step, verdict, guidance string, humanRequired bool)
- func (l *Logger) ToolCall(tool string, args map[string]interface{})
- func (l *Logger) ToolResult(tool string, duration time.Duration, err error)
- func (l *Logger) Warn(msg string, fields ...map[string]interface{})
- func (l *Logger) WithComponent(component string) *Logger
- func (l *Logger) WithTraceID(traceID string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fields ¶
type Fields = map[string]interface{}
Fields is a map of structured log fields. Type alias provides semantic clarity over raw map[string]interface{}.
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides structured logging to stdout. This is for real-time monitoring only - forensic analysis uses session JSON.
func (*Logger) ExecutionComplete ¶
ExecutionComplete logs the completion of workflow execution.
func (*Logger) ExecutionStart ¶
ExecutionStart logs the start of workflow execution.
func (*Logger) GoalComplete ¶
GoalComplete logs the completion of a goal.
func (*Logger) PhaseComplete ¶
PhaseComplete logs the completion of an execution phase.
func (*Logger) PhaseStart ¶
PhaseStart logs the start of an execution phase.
func (*Logger) ReconcilePhase ¶
ReconcilePhase logs the RECONCILE phase details.
func (*Logger) SecurityDecision ¶
SecurityDecision logs a security decision (real-time output).
func (*Logger) SecurityWarning ¶
SecurityWarning logs a security-related warning.
func (*Logger) SupervisePhase ¶
SupervisePhase logs the SUPERVISE phase details.
func (*Logger) SupervisorVerdict ¶
SupervisorVerdict logs supervisor decisions.
func (*Logger) ToolResult ¶
ToolResult logs a tool result (real-time output).
func (*Logger) WithComponent ¶
WithComponent returns a new logger with the given component name.
func (*Logger) WithTraceID ¶
WithTraceID returns a new logger with the given trace ID.