gaoran10 commented on code in PR #18865:
URL: https://github.com/apache/pulsar/pull/18865#discussion_r1093997621


##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java:
##########
@@ -2450,6 +2450,64 @@ The delayed message index bucket time step(in seconds) 
in per bucket snapshot se
     )
     private long namespaceBundleUnloadingTimeoutMs = 60000;
 
+    @FieldContext(
+            category = CATEGORY_LOAD_BALANCER,
+            doc = "Option to enable the debug mode for the load balancer 
logics. "
+                    + "The debug mode prints more logs to provide more 
information "
+                    + "such as load balance states and decisions. "
+                    + "(only used in load balancer extension logics)"
+    )
+    private boolean loadBalancerDebugModeEnabled = false;

Review Comment:
   The Pulsar broker uses the log4j2, which supports custom log configurations 
by modifying the log config file `${PULSAR_HOME}/conf/log4j2.yaml`, which 
supports log control at class level.



##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java:
##########
@@ -2450,6 +2450,64 @@ The delayed message index bucket time step(in seconds) 
in per bucket snapshot se
     )
     private long namespaceBundleUnloadingTimeoutMs = 60000;
 
+    @FieldContext(
+            category = CATEGORY_LOAD_BALANCER,
+            doc = "Option to enable the debug mode for the load balancer 
logics. "
+                    + "The debug mode prints more logs to provide more 
information "
+                    + "such as load balance states and decisions. "
+                    + "(only used in load balancer extension logics)"
+    )
+    private boolean loadBalancerDebugModeEnabled = false;

Review Comment:
   The Pulsar broker uses the log4j2, which supports custom log configurations 
by modifying the log config file `${PULSAR_HOME}/conf/log4j2.yaml`, which 
supports log control at class level.



-- 
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]

Reply via email to