def _log(self, message, debug=None, **kwargs):
display_log = self.debug<EOL>if debug is not None:<EOL><INDENT>display_log = debug<EOL><DEDENT>if display_log:<EOL><INDENT>print(message.format(**kwargs))<EOL><DEDENT>
Outputs a formatted message in the console if the
        debug mode is activated.

        :param message: The message that will be printed
        :param debug: (optional) Overwrite of `Client.debug`
        :param kwargs: (optional) Arguments that will be passed
            to the `str.format()` method