def METHOD_NAME(self):
    for entry in self.driver.get_log('browser'):
        m = entry['message']
        entry['message'] = m[m.find('"'):].replace('\\n', '').strip('" ')
        self.messages.append(entry)