Skip to main content

daemon_log_path

Function daemon_log_path 

Source
pub fn daemon_log_path(id: &str) -> PathBuf
Expand description

Returns the main log file path for a daemon.

The path is computed as: $PITCHFORK_LOGS_DIR/{safe_id}/{safe_id}.log where safe_id has / replaced with -- for filesystem safety.

Prefer using DaemonId::log_path() when you have a structured ID.