Good progress with applying rules, room for improvement
Rules are applied, however some bugs remain: - The HashMap for rules should be replaced by a Vec so they can be stored in order and not randomly - For some reasons, the `%` is not removed from some rules in the private function `update_rules` in the `Settings` struct. - Make it so replacements between square brackets work correctly
This commit is contained in:
@@ -18,7 +18,6 @@ extern crate simplelog;
|
||||
use log::{info, warn};
|
||||
use simplelog::*;
|
||||
|
||||
|
||||
pub mod settings;
|
||||
|
||||
/// Initializes the crate
|
||||
@@ -48,6 +47,11 @@ pub fn init() -> std::result::Result<(), log::SetLoggerError> {
|
||||
TerminalMode::Mixed,
|
||||
)
|
||||
.unwrap(),
|
||||
WriteLogger::new(
|
||||
LevelFilter::Debug,
|
||||
Config::default(),
|
||||
File::create("core.log").unwrap(),
|
||||
),
|
||||
WriteLogger::new(
|
||||
LevelFilter::Info,
|
||||
Config::default(),
|
||||
|
||||
Reference in New Issue
Block a user