Trait LogTarget

Source
pub trait LogTarget:
    Send
    + Sync
    + 'static {
    type Time: TimeAbstraction;

    // Required methods
    fn init();
    fn println(args: Arguments<'_>);
}
Expand description

LogTarget is used to perform log-related operations in a platform-agnostic manner.

Required Associated Types§

Source

type Time: TimeAbstraction

A source of time to add into log messages.

Required Methods§

Source

fn init()

Initializes global state necessary for this type.

Source

fn println(args: Arguments<'_>)

Outputs a line of text through this log target.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl LogTarget for veecle_os::osal::freertos::log::Log

Source§

impl LogTarget for veecle_os::osal::std::log::Log

§

impl LogTarget for veecle_os::osal::embassy::log::Log

§

type Time = Time