Open toneill818 opened 4 years ago
until pulsar does not depend on the log4j2.yaml file
would it be good to make a PR in pulsar for this?
maybe just set these environment variables in values.yaml broker configData:
configData:
PULSAR_LOG_LEVEL: "debug"
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.