已经找到解决办法了,
在用TortoiseGit 查找syslog 可以发现,在3月19日有变更a225238d0c2282c53c0914073acc8222c6cb287c
在osal/linux/os_log.cpp
中的函数 os_log(const char* tag, const char* msg, va_list list)
vsyslog(LOG_INFO, line, list);下面
中加入
vfprintf(stdout, line, list);
函数 void os_err(const char* tag, const char* msg, va_list list)
vsyslog(LOG_ERR, line, list);
下面加入:
vfprintf(stderr, line, list);
问题得以解决,即在 终端中有打印,也在 /var/log/syslog
有打印;
已经找到解决办法了,
在用TortoiseGit 查找syslog 可以发现,在3月19日有变更a225238d0c2282c53c0914073acc8222c6cb287c
在osal/linux/os_log.cpp
中的函数 os_log(const char* tag, const char* msg, va_list list)
vsyslog(LOG_INFO, line, list);下面
中加入
vfprintf(stdout, line, list);
函数 void os_err(const char* tag, const char* msg, va_list list)
vsyslog(LOG_ERR, line, list);
下面加入:
vfprintf(stderr, line, list);
问题得以解决,即在 终端中有打印,也在 /var/log/syslog
有打印;
举报