Skip to main content

Module logging

Module logging 

Source
Expand description

Session logging via tmux pipe-pane.

Captures per-pane terminal output to .git-paw/logs/<session>/<branch>.log. Provides log directory management and session/log enumeration.

Structs§

LogEntry
A single log file entry, pairing a branch name with its log path.

Functions§

ensure_log_dir
Create the session log directory, returning its path.
list_log_sessions
List all session log directories under .git-paw/logs/.
list_logs_for_session
List log files within a session directory, returning LogEntry items.
log_file_path
Build the full log file path for a branch within a session.
logs_dir
Returns the logs directory path (.git-paw/logs/) under the given repo root.
sanitize_branch_for_filename
Replace / with -- so the branch name is safe for use as a filename.
unsanitize_branch_from_filename
Reverse sanitize_branch_for_filename: replace -- with / and strip the .log suffix.