pub fn spawn(
project_root: Option<PathBuf>,
log_root: PathBuf,
state_dir: PathBuf,
)Expand description
Start the interval loop as a background task.
project_root is binding.root().map(Path::to_path_buf) — None for a
projectless daemon. log_root is crate::logging::file_log_dir().
state_dir is where the local idempotency manifest cache lives — the
production call site passes ~/.trusty-code/log-drain.