|
ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
|
Actor日志构建器。 More...
#include <nactor_logitem.h>
Public Member Functions | |
| nactor_logitem (ELOGLEVEL alevel=ELOG_NONE) | |
| nactor_logitem (ELOGLEVEL alevel, ELOG_TYPE alogtype, bool aisnet, const std::source_location &asource=std::source_location::current()) | |
| template<typename ... ARGS> | |
| void | print (const std::format_string< ARGS... > &aformat, const ARGS &... aargs) |
| void | print (const char *astr) |
| void | print (const std::string &astr) |
| template<typename T> | |
| nactor_logitem & | operator<< (const T &adata) |
| nactor_logitem & | operator<< (std::ostream &(*amanipulator)(std::ostream &)) |
Static Public Member Functions | |
| static bool | check_level (ELOGLEVEL alevel) |
Public Attributes | |
| std::stringstream | m_stream |
| ELOGLEVEL | m_level |
| bool | m_isnet |
Static Public Attributes | |
| static bool | m_init = false |
| nactor_logitem初始化标志 | |
Actor日志构建器。
提供流式和格式化两种日志记录方式。支持: