FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ILogger

    trait · ferroui-splat · v0.5.0

    trait ILogger
    

    A logger: writes messages of a level (ILogger).

    A message written with a type names the type that wrote it, by its name (std::any::type_name).

    View source

    Members

    level

    fn level(self: &Self) -> LogLevel
    

    The level from which the logger writes (Level).

    Source

    write

    fn write(self: &Self, message: &str, log_level: LogLevel)
    

    Writes message (Write(string, LogLevel)).

    Source

    write_exception

    fn write_exception(self: &Self, exception: &dyn Error, message: &str, log_level: LogLevel)
    

    Writes message with exception (Write(Exception, string, LogLevel)).

    Source

    write_with_type

    fn write_with_type(self: &Self, message: &str, type_name: &'static str, log_level: LogLevel)
    

    Writes message of the type type_name (Write(string, Type, LogLevel)).

    Source

    write_exception_with_type

    fn write_exception_with_type(self: &Self, exception: &dyn Error, message: &str, type_name: &'static str, log_level: LogLevel)
    

    Writes message with exception, of the type type_name (Write(Exception, string, Type, LogLevel)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.