Skip to content

Conversation

@w41ter
Copy link
Contributor

@w41ter w41ter commented Aug 16, 2024

Followup #35679 and #24556

Background

Previously, the cloud logs were written to files. The main cloud logs include meta_service.INFO and meta_service.WARNING, doris_cloud.out.
In a K8s deployment environment, logs usually must be output to standard output, and other components process the log stream.

Solution

This PR made the following changes:

Modified the glog config:

  • When started with --daemon, logs are still written to various files, and the format remains unchanged.

  • When started with --console, meta_service.INFO's log is output to standard output and marked with the prefix RuntimeLogger.

Examples are as follows:

 RuntimeLogger I20240605 23:41:20.426553 4137369 runtime_query_statistics_mgr.cpp:245] Report profile thread stopped

Added a new cloud config: enable_file_logger, which defaults to true. This indicates that logs will be recorded in files regardless of the startup method. For example, if it is started with --console, the log will be output to both the file and the standard output. If it is false, the log will not be recorded in the file regardless of the startup method.

@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.

@w41ter
Copy link
Contributor Author

w41ter commented Aug 16, 2024

run buildall

@w41ter
Copy link
Contributor Author

w41ter commented Aug 16, 2024

run buildall

@github-actions
Copy link
Contributor

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

1 similar comment
@github-actions
Copy link
Contributor

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

Copy link
Contributor

@dataroaring dataroaring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 18, 2024
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@w41ter w41ter merged commit b10c533 into apache:master Aug 20, 2024
@w41ter w41ter deleted the cloud_console branch August 20, 2024 01:54
dataroaring pushed a commit that referenced this pull request Aug 22, 2024
Followup #35679 and #24556

# Background

Previously, the cloud logs were written to files. The main cloud logs
include meta_service.INFO and meta_service.WARNING, doris_cloud.out.
In a K8s deployment environment, logs usually must be output to standard
output, and other components process the log stream.

# Solution
This PR made the following changes:

Modified the glog config:

- When started with --daemon, logs are still written to various files,
and the format remains unchanged.

- When started with --console, meta_service.INFO's log is output to
standard output and marked with the prefix RuntimeLogger.

Examples are as follows:

```
 RuntimeLogger I20240605 23:41:20.426553 4137369 runtime_query_statistics_mgr.cpp:245] Report profile thread stopped
```

Added a new cloud config: `enable_file_logger`, which defaults to true.
This indicates that logs will be recorded in files regardless of the
startup method. For example, if it is started with `--console`, the log
will be output to both the file and the standard output. If it is false,
the log will not be recorded in the file regardless of the startup
method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. dev/3.0.2-merged reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants