|
libxr
Embedded C++ framework for bare-metal, RTOS and Linux
|
日志管理器 / LibXR Logger Manager More...
#include <logger.hpp>
Static Public Member Functions | |
| static void | Init () |
| 初始化日志主题 / Initialize the log topic | |
| template<Print::Text Source, typename... Args> | |
| static void | Publish (LogLevel level, const char *file, uint32_t line, Args &&... args) |
| 发布一条字面量日志 / Publish one literal log message | |
| template<Detail::LoggerLiteral::Frontend Forced, Print::Text Source, typename... Args> | |
| static void | Publish (LogLevel level, const char *file, uint32_t line, Args &&... args) |
| 发布一条带显式前端标签的字面量日志 / Publish one literal log message with an explicit frontend tag | |
Definition at line 56 of file logger.hpp.
|
static |
初始化日志主题 / Initialize the log topic
初始化 logger 的内部 topic 与终端订阅路径 Initialize the logger's internal topic and terminal subscriber path
/xr/log topic,并注册一个把日志打印到 STDIO 的 callback。 This performs one-time initialization only: create the /xr/log topic and register one callback that prints logs to STDIO. Definition at line 121 of file logger.cpp.
|
inlinestatic |
发布一条字面量日志 / Publish one literal log message
| level | 日志级别 / Log level |
| file | 来源文件名 / Source file name |
| line | 行号 / Line number |
| args | 格式参数 / Format arguments |
Definition at line 72 of file logger.hpp.
|
inlinestatic |
发布一条带显式前端标签的字面量日志 / Publish one literal log message with an explicit frontend tag
| level | 日志级别 / Log level |
| file | 来源文件名 / Source file name |
| line | 行号 / Line number |
| args | 格式参数 / Format arguments |
Definition at line 89 of file logger.hpp.