'Filters event so that only those with type 3131 get to the log.
Also split them, so we can add the correct formatting to the first
part of the message'

def customEvent(self, text):

    text = text.split('-', 1)
    if (text[0] == 'INFO    '):
        self.update((('[    ' + text[0]) + ']'), self.bold)
    elif (text[0] == 'DEBUG    '):
        self.update((('[    ' + text[0]) + ']'), self.bold, self.green)
    elif ((text[0] == 'ERROR    ') or (text[0] == 'CRITICAL:    ')):
        self.update((('[    ' + text[0]) + ']'), self.bold, self.red)
    elif (text[0] == 'WARNING    '):
        self.update((('[    ' + text[0]) + ']'), self.bold, self.orange)
    elif (text[0] == 'NOTIFICATION    '):
        self.update((('[    ' + text[0]) + ']'), self.bold, self.blue)
    elif (text[0] == 'NEWS    '):
        data_url_desc = text[1].split('|')
        self.news_button(data_url_desc[0], data_url_desc[1])
        return
    self.update((('-' + '-'.join(text[1:])) + '\n'))
