|
@@ -7,13 +7,11 @@ pub struct Log;
|
|
|
|
|
|
impl Log {
|
|
|
pub fn init(level: LevelFilter) -> io::Result<()> {
|
|
|
- CombinedLogger::init(vec![
|
|
|
- WriteLogger::new(
|
|
|
- level,
|
|
|
- simplelog::Config::default(),
|
|
|
- File::create("held.log")?,
|
|
|
- ),
|
|
|
- ])
|
|
|
+ CombinedLogger::init(vec![WriteLogger::new(
|
|
|
+ level,
|
|
|
+ simplelog::Config::default(),
|
|
|
+ File::create("held.log")?,
|
|
|
+ )])
|
|
|
.unwrap();
|
|
|
|
|
|
Ok(())
|