changed parse file error stderr to filewrite #301

This commit is contained in:
DustInDark
2021-12-21 02:13:01 +09:00
parent 29ee8a5901
commit 33e743c8fc

View File

@@ -70,7 +70,12 @@ fn get_alias_value_in_record(
} }
None => { None => {
AlertMessage::alert( AlertMessage::alert(
&mut std::io::stderr().lock(), &mut BufWriter::new(
OpenOptions::new()
.append(true)
.open(ERROR_LOG_PATH.to_string())
.unwrap(),
),
match is_by_alias { match is_by_alias {
true => format!( true => format!(
"count by clause alias value not found in count process. rule file:{} EventID:{}", "count by clause alias value not found in count process. rule file:{} EventID:{}",