mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-16 00:10:38 +08:00
16 lines
356 B
Rust
16 lines
356 B
Rust
use log::LevelFilter;
|
|
|
|
use radicle::profile::Profile;
|
|
|
|
pub fn enable(profile: &Profile, cmd: &str, op: &str) -> Result<(), anyhow::Error> {
|
|
let logfile = format!(
|
|
"{}/rad-tui-{}-{}.log",
|
|
profile.home().path().to_string_lossy(),
|
|
cmd,
|
|
op,
|
|
);
|
|
simple_logging::log_to_file(logfile, LevelFilter::Info)?;
|
|
|
|
Ok(())
|
|
}
|