[Enhancement](be-logger) Support custom date time format functionality in be log. (#40727)

## Proposed changes

backport #40347
This commit is contained in:
Qi Chen
2024-09-13 10:02:12 +08:00
committed by GitHub
parent a7fe2ae901
commit 431e2e1af9
3 changed files with 56 additions and 17 deletions

View File

@ -220,6 +220,12 @@ DEFINE_Int32(sys_log_verbose_level, "10");
DEFINE_Int32(sys_log_verbose_flags_v, "-1");
// log buffer level
DEFINE_String(log_buffer_level, "");
// log enable custom date time format
DEFINE_Bool(sys_log_enable_custom_date_time_format, "false");
// log custom date time format (https://en.cppreference.com/w/cpp/io/manip/put_time)
DEFINE_String(sys_log_custom_date_time_format, "%Y-%m-%d %H:%M:%S");
// log custom date time milliseconds format (fmt::format)
DEFINE_String(sys_log_custom_date_time_ms_format, ",{:03d}");
// number of threads available to serve backend execution requests
DEFINE_Int32(be_service_threads, "64");