Skip to main content

Module logging

Module logging 

Source
Expand description

Implementation of the logging WIT interface.

// Allows widgets to write logs to the host
interface logging {
    enum level {
        debug,
        info,
        warn,
        error
    }

    log: func(level: level, context: string, message: string);
}