macro_rules! info {
($module:expr, $($arg:tt)+) => { ... };
}Expand description
Emits an informational log entry through the global logging service.
This macro is a complete no-op if the logger has not been initialized (i.e., if
crate::logger::GLOBAL_LOGGER is empty). The format string is never evaluated in
that case, so there is no runtime cost on the happy path.
The entry is dispatched via [tokio::sync::mpsc::Sender::try_send], which is
non-blocking. If the channel is full, the entry is silently dropped rather than
blocking the calling request thread.
§Parameters
$module— Acrate::logger::Modulevariant identifying the subsystem emitting the log.$($arg)+— A format string and its arguments, following the same syntax asstd::format!.
§Usage
ⓘ
info!(Module::Api, "request received from user {}", user_id);
info!(Module::Storage, "blob committed: {}", hash);