Module commit_logging

Module commit_logging 

Source
Expand description

Per-attempt logging infrastructure for commit message generation.

This module provides detailed logging for each commit generation attempt, creating a clear audit trail for debugging parsing failures. Each attempt produces a unique numbered log file that captures:

  • Prompt information
  • Raw agent output
  • All extraction attempts with reasons
  • Validation results
  • Final outcome

Log files are organized by session to prevent overwrites and allow comparison across multiple attempts.

Structs§

CommitAttemptLog
Per-attempt log for commit message generation.
CommitLogSession
Session tracker for commit generation logging.
ExtractionAttempt
Represents an extraction attempt with its method and outcome.
ParsingTraceLog
Detailed parsing trace log for commit message extraction.
ParsingTraceStep
Represents a single step in the parsing trace log.
ValidationCheck
Represents a single validation check result.

Enums§

AttemptOutcome
Outcome of a commit generation attempt.