FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ILogger

    trait · ferroui-headless-vnc · v0.5.0

    trait ILogger: Send + Sync
    

    Represents a type used to perform logging.

    Loggers are shared with the threads of a server session, hence Send and Sync.

    View source

    Members

    log

    fn log(self: &Self, log_level: LogLevel, event_id: EventId, state: &dyn Any, exception: Option<&dyn Error>, formatter: LogFormatter<'_>)
    

    Writes a log entry.

    state is the entry to be written (the message, for the extension methods of LoggerExtensions); formatter creates the message of the entry from state and exception.

    Source

    is_enabled

    fn is_enabled(self: &Self, log_level: LogLevel) -> bool
    

    Checks if the given log_level is enabled.

    Source

    begin_scope

    fn begin_scope(self: &Self, state: &dyn Any) -> Rc<dyn IDisposable>
    

    Begins a logical operation scope. Returns a disposable object that ends the logical operation scope on dispose.

    Source

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.