Samreay commented on issue #194:
URL: 
https://github.com/apache/pulsar-client-python/issues/194#issuecomment-1892887290

   Thanks @merlimat, can confirm that
   
   ```python
   import logging
   
   import pulsar
   
   pulsar_logger = pulsar.ConsoleLogger(log_level=pulsar.LoggerLevel.Error)
   logging.basicConfig(level=logging.INFO, format="{message}", style="{")
   
   client = pulsar.Client("pulsar://localhost:6650", logger=pulsar_logger)
   producer = client.create_producer("A")
   producer.close()
   client.close()
   ```
   
   does seem to silence the loggers better than using the standard library 
logging.
   
   I'll leave the issue open if possible though, because the inconsistency 
between the behaviour is something which should probably be looked into at some 
point. 


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