Skip to content
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. #40727

Merged
merged 1 commit into from
Sep 13, 2024

Conversation

kaka11chen
Copy link
Contributor

Proposed changes

backport #40347

…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}");
```
@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@kaka11chen
Copy link
Contributor Author

run buildall

Copy link
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

TeamCity be ut coverage result:
Function Coverage: 36.15% (9320/25778)
Line Coverage: 27.72% (76499/275926)
Region Coverage: 26.50% (39272/148208)
Branch Coverage: 23.33% (20035/85878)
Coverage Report: http://coverage.selectdb-in.cc/coverage/b9daefd3fbc585314771e5cb60733ac0737d396c_b9daefd3fbc585314771e5cb60733ac0737d396c/report/index.html

@morningman morningman merged commit 431e2e1 into apache:branch-2.1 Sep 13, 2024
20 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants