-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement](be-logger) Support custom date time format functionality in be log. #40347
[Enhancement](be-logger) Support custom date time format functionality in be log. #40347
Conversation
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
5e78119
to
c46cff4
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
c46cff4
to
573a67f
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 38291 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 192727 ms
|
ClickBench: Total hot run time: 31.67 s
|
run compile |
|
||
// Add a space if custom_date_time_format. | ||
if constexpr (custom_date_time_format) { | ||
s << ' '; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why need a space here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
easy to parse date time
573a67f
to
8026e44
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
8026e44
to
40fe19e
Compare
run buildall |
clang-tidy review says "All clean, LGTM! 👍" |
TPC-H: Total hot run time: 38271 ms
|
TPC-DS: Total hot run time: 192834 ms
|
TeamCity be ut coverage result: |
ClickBench: Total hot run time: 32.91 s
|
40fe19e
to
9e64706
Compare
run buildall |
TPC-H: Total hot run time: 38402 ms
|
TPC-DS: Total hot run time: 194078 ms
|
TeamCity be ut coverage result: |
ClickBench: Total hot run time: 31.89 s
|
run compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
…y in be log. (apache#40347) ## Proposed changes Add these configurations to control it. ``` // 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}"); ```
…y in be log. (apache#40347) Add these configurations to control it. ``` // 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}"); ```
…y in be log. (apache#40347) ## Proposed changes Add these configurations to control it. ``` // 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}"); ```
…y in be log. (apache#40347) ## Proposed changes Add these configurations to control it. ``` // 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}"); ```
…y in be log. (#40347) ## Proposed changes Add these configurations to control it. ``` // 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}"); ```
Proposed changes
Add these configurations to control it.