ngl_server 1.0
基于 Actor 模型的 C++ 服务器框架
ngl::bi Class Reference

BI日志格式化工具类。 More...

#include <bi.h>

Static Public Member Functions

template<typename... Args>
static std::string push (const Args &... args)
 将多个参数拼接为BI日志字符串。

Detailed Description

BI日志格式化工具类。

提供可变参数的日志数据拼接功能,将多个字段用分隔符'|'连接为字符串。 用于业务智能数据的结构化采集和上报。

Note
所有方法均为静态方法,禁止实例化。

Member Function Documentation

◆ push()

template<typename... Args>
std::string ngl::bi::push ( const Args &... args)
inlinestatic

将多个参数拼接为BI日志字符串。

Template Parameters
Args参数类型包
Parameters
args要拼接的参数值
Returns
std::string 拼接后的字符串,字段间以'|'分隔
std::string log = bi::push(serverid, roleid, itemid, count);
// 结果: "1001|50001|10010|5"

The documentation for this class was generated from the following file: