def __init__(self, debug=False):
self.debug = debug<EOL>loglevel = logging.DEBUG if debug else logging.WARNING<EOL>logging.basicConfig(<EOL>format='<STR_LIT>', datefmt='<STR_LIT>', level=loglevel)<EOL>self.processor = EventProcessor()<EOL>self.server = EventServer(processor=self.processor)<EOL>if self.base_title is None:<EOL><INDENT>raise NotImplementedError<EOL><DEDENT>self.services = {}<EOL>self.views = {}<EOL>self.current_view = None<EOL>self.register('<STR_LIT>', lambda evt,<EOL>interface: self._load_view('<STR_LIT:default>'))<EOL>
Constructor of the Application.

:param debug: Sets the logging level of the application
:raises NotImplementedError: When ``Application.base_title``
not set in the class definition.