Skip to main content

Module logging

Module logging 

Source

Structs§

BannerInfo
Startup banner info. Struct avoids argument-order bugs between &str params.

Functions§

detect_ssh_version
Detect SSH version by running ssh -V (output goes to stderr). Uses a 2-second timeout via mpsc channel to avoid hanging startup if the ssh binary is broken or on a slow filesystem.
init
Initialize logging. Call once at the start of main().
level_name
Return the effective log level name as a lowercase string.
log_path
Return the path to the log file: ~/.purple/purple.log
write_banner
Write startup banner directly to log file, bypassing level filters. All timestamps are UTC (suffixed with Z).