MCPcopy Create free account
hub / github.com/VSCodeConfigHelper/v4 / get_log_path

Function get_log_path

src-tauri/src/log.rs:38–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36static LOG_PATH: Lazy<Mutex<Option<PathBuf>>> = Lazy::new(|| Default::default());
37
38pub fn get_log_path() -> PathBuf {
39 if let Some(p) = LOG_PATH.lock().unwrap().as_ref() {
40 p.clone()
41 } else {
42 DEFAULT_LOG_PATH.clone()
43 }
44}
45
46pub fn setup(path: Option<&String>, log_level: log::LevelFilter) -> Result<()> {
47 *LOG_PATH.lock().unwrap() = path.map(|s| PathBuf::from(s));

Callers 2

setupFunction · 0.85
send_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected