nodece commented on PR #22017: URL: https://github.com/apache/pulsar/pull/22017#issuecomment-1926344028
> > In the `bin/pulsar`, we use the system properties to set the log4j2 log level, and it looks higher priority than the `log4j2.yaml` file. > > When I remove the `PULSAR_LOG_LEVEL` and `PULSAR_LOG_ROOT_LEVEL` variables in the `bin/pulsar`, and then change the log level from info to debug in the `log4j2.yaml` file, it works fine. > > If you are modifying log4j2.yaml directly, just go ahead and use a completely different property name than `pulsar.log.root.level` and `pulsar.log.level`. This is a workaround, but I don't want to change the `pulsar.log.root.level` and `pulsar.log.level` names, and I prefer to change the value. > You need to use `PULSAR_LOG_LEVEL` and `PULSAR_LOG_ROOT_LEVEL` to change the levels when using the default log4j2.yaml. This way requires restarting the broker. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
