lib: Remove logging module

This commit is contained in:
Erik Kundt
2024-07-19 13:29:36 +02:00
parent 04b1115571
commit ee6da33bb4
3 changed files with 1 additions and 16 deletions
+1
View File
@@ -45,6 +45,7 @@
- All Radicle-dependent code (moved to `bin/`)
- Page size attribute from scrollable widgets
- Cutoff and footer attributes from table properties
- Logging facilities
### Fixed
-1
View File
@@ -1,5 +1,4 @@
pub mod event;
pub mod log;
pub mod store;
pub mod task;
pub mod terminal;
-15
View File
@@ -1,15 +0,0 @@
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(())
}