Skip to main content

yog_event/
log.rs

1//! Records written to the game's log.
2
3use yog_data::Schema;
4
5/// A record a mod wrote (`yog_api::info!`…): the runtime puts it in the
6/// game's log; anyone else may listen (a debugger's console).
7#[derive(Debug, Clone, Schema)]
8pub struct Record {
9    /// `yog_logging::Level` as a number.
10    pub level: u32,
11    pub message: String,
12}