| 171 | /// 以 DEBUG 级别记录日志(SIMPLEKERNEL_MIN_LOG_LEVEL > 0 时编译期消除) |
| 172 | template <typename... Args> |
| 173 | inline auto Debug(etl::format_string<Args...> fmt, Args&&... args) -> void { |
| 174 | if constexpr (detail::Level::kDebug < detail::kMinLevel) { |
| 175 | return; |
| 176 | } |
| 177 | detail::Log<detail::Level::kDebug>(fmt, static_cast<Args&&>(args)...); |
| 178 | } |
| 179 | |
| 180 | /// 以 INFO 级别记录日志 |
| 181 | template <typename... Args> |
no outgoing calls