mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-16 00:10:38 +08:00
lib: Remove logging module
This commit is contained in:
@@ -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,5 +1,4 @@
|
||||
pub mod event;
|
||||
pub mod log;
|
||||
pub mod store;
|
||||
pub mod task;
|
||||
pub mod terminal;
|
||||
|
||||
-15
@@ -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(())
|
||||
}
|
||||
Reference in New Issue
Block a user