Function std_fmt

Source
pub fn std_fmt<T: Config>(
    timestamp: BlockNumberFor<T>,
    level: &LogLevel,
    target: &str,
    message: &str,
) -> String
Expand description

Standard log formatter for OCW routines.

Produces a consistently structured, human-readable log line that embeds block context, severity, routing target, and message body.

§Output format

🧱 [<block>] <emoji> [<LEVEL>] 🎯 [<target>] 🧾 <message>

§Example

🧱 [312] 📣 [Info] 🎯 [AFFIDAVIT] 🧾 Module(9): InitAffidavitKeyRoutineSuccess