Logging #26
@ -67,7 +67,7 @@ pub fn log_msg_file() {
|
|||||||
create_dir_all(PathBuf::from(LOG_DIR.as_str()))
|
create_dir_all(PathBuf::from(LOG_DIR.as_str()))
|
||||||
.unwrap_or_else(|_| panic!("Could not create directory: {}", *LOG_DIR));
|
.unwrap_or_else(|_| panic!("Could not create directory: {}", *LOG_DIR));
|
||||||
|
|
||||||
log_message(&message, &config, file!(), line!(), column!());
|
log!(&message, &config);
|
||||||
|
|
||||||
let log_file = read_to_string(PathBuf::from(log_path))
|
let log_file = read_to_string(PathBuf::from(log_path))
|
||||||
.unwrap_or_else(|_| panic!("Could not read file: {log_path}"));
|
.unwrap_or_else(|_| panic!("Could not read file: {log_path}"));
|
||||||
@ -91,7 +91,7 @@ pub fn log_str() {
|
|||||||
.expect("There should be a log line.")
|
.expect("There should be a log line.")
|
||||||
+ "\n";
|
+ "\n";
|
||||||
|
|
||||||
log_message(&message, &config, file!(), line!(), column!());
|
log!(&message, &config);
|
||||||
|
|
||||||
let log_file = read_to_string(PathBuf::from(log_path))
|
let log_file = read_to_string(PathBuf::from(log_path))
|
||||||
.unwrap_or_else(|_| panic!("Could not read file: {log_path}"));
|
.unwrap_or_else(|_| panic!("Could not read file: {log_path}"));
|
||||||
@ -122,7 +122,7 @@ pub fn verbosity_no_filter() {
|
|||||||
+ "\n";
|
+ "\n";
|
||||||
|
|
||||||
for msg in messages {
|
for msg in messages {
|
||||||
log_message(&msg, &config, file!(), line!(), column!());
|
log!(&msg, &config);
|
||||||
}
|
}
|
||||||
|
|
||||||
let log_file = read_to_string(PathBuf::from(log_path))
|
let log_file = read_to_string(PathBuf::from(log_path))
|
||||||
@ -156,7 +156,7 @@ pub fn verbosity_filter() {
|
|||||||
+ "\n");
|
+ "\n");
|
||||||
|
|
||||||
for msg in messages {
|
for msg in messages {
|
||||||
log_message(&msg, &config, file!(), line!(), column!());
|
log!(&msg, &config);
|
||||||
}
|
}
|
||||||
|
|
||||||
let log_file = read_to_string(PathBuf::from(log_path))
|
let log_file = read_to_string(PathBuf::from(log_path))
|
||||||
|
Reference in New Issue
Block a user