Logging #26
@ -103,9 +103,9 @@ macro_rules! log {
|
||||
log_message($msg, &*conf, file!(), line!(), column!());
|
||||
drop(conf);
|
||||
};
|
||||
($msg:expr, $config:expr) => {
|
||||
($msg:expr, $config:expr) => {
|
||||
log_message($msg, $config, file!(), line!(), column!());
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -37,8 +37,7 @@ static LOG_DIR: Lazy<String> = Lazy::new(|| {
|
||||
|
||||
/// Tests if the macro logs properly with a given config.
|
||||
#[test]
|
||||
pub fn log_macro_given_config()
|
||||
{
|
||||
pub fn log_macro_given_config() {
|
||||
let log_path = &format!("{}/{}", *LOG_DIR, Uuid::new_v4());
|
||||
println!("Log Path: {log_path}");
|
||||
let message = LogMessageType::GenericWarn(String::from("Test Log")).log_message();
|
||||
|
Reference in New Issue
Block a user