Commit 7af47a65 authored by oscar's avatar oscar

提交代码

parent 05187f2f
......@@ -18,7 +18,7 @@ int main(int argc, char*argv[]) {
//ROS_INFO("START JFX_VISION_NODE");
InitLog();
InitLog(argv[0]);
SDK_LOG(SDK_INFO, "main function");
......
......@@ -159,13 +159,13 @@ void signalHandler(int signum) {
INIT_SDK_LOG("jfx_event")
SDKLogBase g_log;
void InitLog()
void InitLog(char* argv)
{
// 注册信号 SIGINT 和信号处理程序
signal(SIGINT, signalHandler);
LimitOpenFile();
google::InitGoogleLogging(argv[0]);
google::InitGoogleLogging(argv);
FLAGS_stderrthreshold = google::INFO; //输出到stderr的限值,默认为2(ERROR),默认ERORR以下的信息(INFO、WARNING)不打印到终端。
FLAGS_max_log_size = 500; //设置最大日志文件大小(以MB为单位)。
FLAGS_logbufsecs = 0; //设置可以缓冲日志的最大秒数,0指实时输出。
......
#pragma once
void InitLog();
void InitLog(char* argv);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment