We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
int main() { // 创建同步器 Synchronizer synchronizer; // 加入日志前缀后开启日志功能 synchronizer.SetLogPath("my-log-"); ...
如果不配置SetLogPath。默认不产生日志数据,其中SetLogPath可以设置最小日志等级,如INFO,WARNING,ERROR,FATAL。默认是INFO。
cd SimpleSensorSync mkdir build && cd build cmake .. && make cd build/example/NetCam/ ./net_cam
build/example/NetCam/ ├── Makefile ├── my-log-20250728-23-10-31.log └── net_cam
其中:my-log-20250728-23-10-31.log为生成的日志文件,名称按照运行时的系统时间生成。