Skip to main content

file_log_dir

Function file_log_dir 

Source
pub fn file_log_dir() -> PathBuf
Expand description

Directory tcode’s own rotating file log is written to: ~/.trusty-code/logs.

Why (#6537): before this, init_tracing wrote to stderr only, which nothing durable ever collects — the epic’s whole point (cloud log drain, #6533) needs a file to drain. This mirrors trusty-mpm’s own ~/.trusty-mpm/logs layout, under the private-state directory crate::paths::private_state already established rather than a new root. What: crate::paths::private_state::private_state_dir().join("logs"). Test: tests::file_log_dir_is_under_private_state.