FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ConsoleLogger

    struct · ferroui-splat · v0.5.0

    struct ConsoleLogger
    

    A logger that writes a line per message to the standard output or to a writer (ConsoleLogger), the messages of its level and above.

    A message with an exception is written through exception_message_format: {0} is the message and {1} the exception.

    View source

    Members

    new

    fn new() -> Self
    

    A logger that writes to the standard output (ConsoleLogger()).

    Source

    with_writer

    fn with_writer(writer: Box<dyn Write>) -> Self
    

    A logger that writes to writer (ConsoleLogger(TextWriter)).

    Source

    exception_message_format

    fn exception_message_format(self: &Self) -> String
    

    The format of a message with an exception (ExceptionMessageFormat), {0} - {1} at first.

    Source

    set_exception_message_format

    fn set_exception_message_format(self: &Self, format: impl Into<String>)
    

    Sets the format of a message with an exception.

    Source

    set_level

    fn set_level(self: &Self, level: LogLevel)
    

    Sets the level (Level { set; }).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • Default
    • ILogger

    Availability

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