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

Add log level configuration in pulsar-client #8195

Merged
merged 1 commit into from
Oct 12, 2020

Conversation

bbonnin
Copy link
Contributor

@bbonnin bbonnin commented Oct 3, 2020

Motivation

When using pulsar-client CLI, we have a lot of log4j logs useless for just sending/receiving messages.
It could great to not display these logs with just a env variable (like in pulsar-admin).

Modifications

The log level can be configured with the system property pulsar.log.level for the Java application.
The modification is the ability to set this level using a env variable PULSAR_LOG_LEVEL (default: info).

Verifying this change

This change is a trivial rework / code cleanup without any test coverage.

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): no
  • The public API: no
  • The schema: no
  • The default values of configurations: no
  • The wire protocol: no
  • The rest endpoints: no
  • The admin cli options: no
  • Anything that affects deployment: no

Documentation

  • Does this pull request introduce a new feature? no

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui
Copy link
Contributor

/pulsarbot run-failure-checks

@codelipenghui codelipenghui merged commit c6550e4 into apache:master Oct 12, 2020
wolfstudy pushed a commit that referenced this pull request Oct 30, 2020
### Motivation
When using pulsar-client CLI, we have a lot of log4j logs useless for just sending/receiving messages.
It could great to not display these logs with just a env variable (like in pulsar-admin).

### Modifications
The log level can be configured with the system property `pulsar.log.level` for the Java application.
The modification is the ability to set this level using a env variable PULSAR_LOG_LEVEL (default: info).

(cherry picked from commit c6550e4)
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
### Motivation
When using pulsar-client CLI, we have a lot of log4j logs useless for just sending/receiving messages.
It could great to not display these logs with just a env variable (like in pulsar-admin).

### Modifications
The log level can be configured with the system property `pulsar.log.level` for the Java application.
The modification is the ability to set this level using a env variable PULSAR_LOG_LEVEL (default: info).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants