master > master: core-rust - export für alle log-methoden
This commit is contained in:
parent
c923604b59
commit
b377120ea8
@ -16,6 +16,8 @@ macro_rules! log_info{
|
||||
println!($text$(, $args )*);
|
||||
}
|
||||
}
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use log_info;
|
||||
|
||||
/// Prints a debug message
|
||||
#[macro_export]
|
||||
@ -38,6 +40,8 @@ macro_rules! log_warn{
|
||||
println!($text$(, $args )*);
|
||||
}
|
||||
}
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use log_warn;
|
||||
|
||||
/// Prints an error message
|
||||
#[macro_export]
|
||||
@ -47,6 +51,8 @@ macro_rules! log_error{
|
||||
println!($text$(, $args )*);
|
||||
}
|
||||
}
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use log_error;
|
||||
|
||||
/// Prints a fatal error message + crashes
|
||||
#[macro_export]
|
||||
@ -55,3 +61,6 @@ macro_rules! log_fatal{
|
||||
panic!("[\x1b[91;1mFATAL\x1b[0m] {}", format!($text$(, $args )*));
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused_imports)]
|
||||
pub(crate) use log_fatal;
|
||||
|
Loading…
x
Reference in New Issue
Block a user