Fail if log name too long.