Skip to main content

default_path

Function default_path 

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

Returns the default path for the usage log.

Priority:

  1. $BLYTE_USAGE_LOG if set and non-empty (“off” disables logging and returns None).
  2. $XDG_STATE_HOME/blyte/usage.jsonl if $XDG_STATE_HOME is set and non-empty.
  3. $HOME/.local/state/blyte/usage.jsonl if $HOME is set and non-empty.
  4. None if none of these is available.