pulsar-helm-chart icon indicating copy to clipboard operation
pulsar-helm-chart copied to clipboard

Add The Ability To Set Log Level

Open toneill818 opened this issue 5 years ago • 2 comments

Is your feature request related to a problem? Please describe. Setting PULSAR_LOG_ROOT_LEVEL and PULSAR_ROOT_LOGGER environment variables using configData does not change the log level since it uses the conf/log4j2.yaml .

Describe the solution you'd like Ideally we would be able to only use environment variables, but that will not be possible until pulsar does not depend on the log4j2.yaml file. To get it working in its current state, we could create a ConfigMap with the contents of the logfile, then mount it as a volume and set the PULSAR_LOG_CONF to point to our mounted file instead of conf/log4j2.yaml.

toneill818 avatar Aug 19 '20 11:08 toneill818

until pulsar does not depend on the log4j2.yaml file

would it be good to make a PR in pulsar for this?

rvashishth avatar Aug 19 '20 18:08 rvashishth

maybe just set these environment variables in values.yaml broker configData:

configData:
    PULSAR_LOG_LEVEL: "debug"

pisceslj avatar Mar 13 '23 08:03 pisceslj