Added validation to LogPriority and added final modifer to static fields.