Skip to main content

console_log

Function console_log 

Source
pub fn console_log(
    console: &Arc<Mutex<Vec<ConsoleEntry>>>,
    level: ConsoleLevel,
    message: String,
)
Expand description

Append a ConsoleEntry with the current local timestamp to the shared console buffer.

Used by api_log / api_warn / api_error and by other host helpers that surface messages to the UI.