前端跟踪埋点模块
通过应用主动埋点,记录应用程序运行过程中业务模块父子调用链及依赖关系,根据条件触发记录上传。
安装
tnpm install filofax
使用
var Filofax = ; // create global instancevar trace = ; // 根节点埋点trace; // 子节点埋点trace; // 错误埋点,dump error 相关函数调用信息var err = 'something wrong';trace;
详细设计
参考
nodejs 日志模块
https://github.com/winstonjs/winston
https://github.com/trentm/node-bunyan