|
|
@ -361,7 +361,7 @@ impl Logger
|
|
|
|
|
|
|
|
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
$crate::log::Logger::global().println(stdout, Status, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stdout, Status, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
@ -380,11 +380,11 @@ impl Logger
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
$crate::log::Logger::global().println(stdout, $crate::log::Level::Info, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stdout, $crate::log::Level::Info, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
info!(format!($fmt, $($args,)*));
|
|
|
|
$crate::info!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -415,11 +415,11 @@ impl Logger
|
|
|
|
|
|
|
|
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
$crate::log::Logger::global().println(stdout, Important, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stdout, Important, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
important!(format!($fmt, $($args,)*));
|
|
|
|
$crate::important!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -429,11 +429,11 @@ impl Logger
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
$crate::log::Logger::global().println(stderr, $crate::log::Level::Warn, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stderr, $crate::log::Level::Warn, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
warn!(format!($fmt, $($args,)*));
|
|
|
|
$crate::warn!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -465,11 +465,11 @@ impl Logger
|
|
|
|
|
|
|
|
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
$crate::log::Logger::global().println(stderr, Dangerous, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stderr, Dangerous, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
dangerous!(format!($fmt, $($args,)*));
|
|
|
|
$crate::dangerous!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -478,11 +478,11 @@ impl Logger
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = std::io::stderr();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
let stderr = stderr.lock();
|
|
|
|
$crate::log::Logger::global().println(stderr, $crate::log::Level::Error, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stderr, $crate::log::Level::Error, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
error!(format!($fmt, $($args,)*));
|
|
|
|
$crate::error!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -491,13 +491,13 @@ impl Logger
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = std::io::stdout();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
let stdout = stdout.lock();
|
|
|
|
$crate::log::Logger::global().println(stdout, $crate::log::Level::Silent, $obj, get_trace!()).expect("i/o error");
|
|
|
|
$crate::log::Logger::global().println(stdout, $crate::log::Level::Silent, $obj, $crate::get_trace!()).expect("i/o error");
|
|
|
|
|
|
|
|
|
|
|
|
std::process::exit(-1)
|
|
|
|
std::process::exit(-1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
($fmt:literal, $($args:expr),*) => {
|
|
|
|
fatal!(format!($fmt, $($args,)*));
|
|
|
|
$crate::fatal!(format!($fmt, $($args,)*));
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|