| 198 | /// 以 ERROR 级别记录日志 |
| 199 | template <typename... Args> |
| 200 | inline auto Err(etl::format_string<Args...> fmt, Args&&... args) -> void { |
| 201 | if constexpr (detail::Level::kErr < detail::kMinLevel) { |
| 202 | return; |
| 203 | } |
| 204 | detail::Log<detail::Level::kErr>(fmt, static_cast<Args&&>(args)...); |
| 205 | } |
| 206 | |
| 207 | /// 强制将队列中所有日志条目输出至串口 |
| 208 | __always_inline auto Flush() -> void { detail::TryDrain(); } |
no outgoing calls