From 70f06341fc81b50719529d84d5a58a4b08913eda Mon Sep 17 00:00:00 2001 From: groverlynn Date: Sat, 21 Sep 2024 11:03:09 +0200 Subject: [PATCH] fix log files named as UNKNOWN (#875) --- src/rime/setup.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rime/setup.cc b/src/rime/setup.cc index bb29427764..89f5d9511e 100644 --- a/src/rime/setup.cc +++ b/src/rime/setup.cc @@ -81,6 +81,9 @@ RIME_API void SetupLogging(const char* app_name, } } google::SetLogFilenameExtension(".log"); + google::SetLogSymlink(google::GLOG_INFO, app_name); + google::SetLogSymlink(google::GLOG_WARNING, app_name); + google::SetLogSymlink(google::GLOG_ERROR, app_name); // Do not allow other users to read/write log files created by current // process. FLAGS_logfile_mode = 0600;