def METHOD_NAME(self, level, msg):
    if level==5:
        tags = ('trace',)
    elif level==3:
        tags = ('info',)
    elif level==2:
        tags = ('warning',)
    elif level<=1:
        tags = ('error',)
    else:
        tags = None
    self.text.insert(tk.END, msg, tags)
    self.text.see(tk.END)