#NEWLINE# def __init__( self , logger_basename , debug_logging , validate , verify_ssl ) : #NEWLINE# #INDENT# "\n\n        :param debug_logging: each Client has a ``logger`` member.\n          The logger is named ``gmusicapi.<client class><client number>`` and\n          will propogate to the ``gmusicapi`` root logger.\n\n          If this param is ``True``, handlers will be configured to send\n          this client's debug log output to disk,\n          with warnings and above printed to stderr.\n          `Appdirs <https://pypi.python.org/pypi/appdirs>`__\n          ``user_log_dir`` is used by default. Users can run::\n\n              from gmusicapi.utils import utils\n              print utils.log_filepath\n\n          to see the exact location on their system.\n\n          If ``False``, no handlers will be configured;\n          users must create their own handlers.\n\n          Completely ignoring logging is dangerous and not recommended.\n          The Google Music protocol can change at any time; if\n          something were to go wrong, the logs would be necessary for\n          recovery.\n\n        :param validate: if False, do not validate server responses against\n          known schemas. This helps to catch protocol changes, but requires\n          significant cpu work.\n\n          This arg is stored as ``self.validate`` and can be safely\n          modified at runtime.\n\n        :param verify_ssl: if False, exceptions will not be raised if there\n          are problems verifying SSL certificates.\n          Be wary of using this option; it's almost always better to\n          fix the machine's SSL configuration than to ignore errors.\n        " #NEWLINE# _Base . num_clients += 1 #NEWLINE# logger_name = ( 'gmusicapi.%s%s' % ( logger_basename , _Base . num_clients ) ) #NEWLINE# self . _cache = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . logger = logging . getLogger ( logger_name ) #NEWLINE# self . validate = validate #NEWLINE# self . _verify_ssl = verify_ssl #NEWLINE# def setup_session( s ) : #NEWLINE# #INDENT# s . verify = self . _verify_ssl #NEWLINE# #UNINDENT# self . session = self . _session_class ( rsession_setup = setup_session ) #NEWLINE# if debug_logging : #NEWLINE# #INDENT# utils . configure_debug_log_handlers ( self . logger ) #NEWLINE# #UNINDENT# self . logger . info ( 'initialized' ) #NEWLINE# self . logout ( )