Skip to main content

discover_xdg_log_paths

Function discover_xdg_log_paths 

Source
pub fn discover_xdg_log_paths() -> Option<PathBuf>
Expand description

Discovers the XDG path for storing log files.

Checks CONTEXT7_HOME first: if set and valid, returns {CONTEXT7_HOME}/context7/logs. Falls back to state_dir() on Linux (XDG_STATE_HOME) with fallback to data_local_dir(). Returns None if neither source provides a path.