veecle_osal_api/
log.rs

1//! Traits for outputting log strings.
2
3use crate::time::TimeAbstraction;
4
5/// `LogTarget` is used to perform log-related operations in a platform-agnostic manner.
6pub trait LogTarget: Send + Sync + 'static {
7    /// A source of time to add into log messages.
8    type Time: TimeAbstraction;
9
10    /// Initializes global state necessary for this type.
11    fn init();
12
13    /// Outputs a line of text through this log target.
14    fn println(args: core::fmt::Arguments<'_>);
15}