MCPcopy Create free account
hub / github.com/GCWing/BitFun / resolve_logs_root

Function resolve_logs_root

src/apps/cli/src/logging.rs:217–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215}
216
217pub fn resolve_logs_root() -> PathBuf {
218 CliConfig::config_dir()
219 .ok()
220 .map(|d| d.join(CLI_LOGS_DIR_NAME))
221 .unwrap_or_else(|| {
222 std::env::temp_dir()
223 .join("bitfun-cli")
224 .join(CLI_LOGS_DIR_NAME)
225 })
226}
227
228pub fn create_session_log_dir(logs_root: &Path) -> PathBuf {
229 let timestamp = Local::now().format(SESSION_DIR_FORMAT).to_string();

Callers 1

init_file_loggingFunction · 0.70

Calls 3

temp_dirFunction · 0.85
okMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected