@@ -426,6 +426,7 @@ def __init__(self, service_url,
426426 Number of concurrent lookup-requests allowed on each broker connection to prevent overload
427427 on the broker.
428428 log_conf_file_path: str, optional
429+ This parameter is deprecated. Use logger instead.
429430 Initialize log4cxx from a configuration file.
430431 use_tls: bool, default=False
431432 Configure whether to use TLS encryption on the connection. This setting is deprecated.
@@ -459,6 +460,8 @@ def __init__(self, service_url,
459460 _check_type (bool , tls_allow_insecure_connection , 'tls_allow_insecure_connection' )
460461 _check_type (bool , tls_validate_hostname , 'tls_validate_hostname' )
461462 _check_type_or_none (str , listener_name , 'listener_name' )
463+ if log_conf_file_path is not None :
464+ logging .warning ("log_conf_file_path is deprecated, will ignore setting it. Use logger instead." )
462465
463466 conf = _pulsar .ClientConfiguration ()
464467 if authentication :
@@ -468,8 +471,6 @@ def __init__(self, service_url,
468471 conf .io_threads (io_threads )
469472 conf .message_listener_threads (message_listener_threads )
470473 conf .concurrent_lookup_requests (concurrent_lookup_requests )
471- if log_conf_file_path :
472- conf .log_conf_file_path (log_conf_file_path )
473474
474475 if isinstance (logger , logging .Logger ):
475476 conf .set_logger (self ._prepare_logger (logger ))
0 commit comments