@debug.setter<EOL><INDENT>def debug(self, value):<DEDENT>
self._debug = value<EOL>if self._debug:<EOL><INDENT>logging.getLogger().setLevel(logging.DEBUG)<EOL><DEDENT>
Turn on debug logging if necessary.

:param value: Value of debug flag