pub fn init(log_dir: Option<&Path>, level: LevelFilter) -> Result<PathBuf>Expand description
Starts logging this process to a new JSONL file in log_dir (default
ecp_logs/), keeping records at level and above, and returns its path.
Only the first call sets logging up; later calls return the same path.