Determines the error level of the messages