Added leveled logging functionality for CheckError function