Our aim in this article is to discuss recent issues related with the Cahn- Hilliard equation in phase separation with the thermodynamically relevant logarithmic potentials; in particular, we are interested in the well-posedness and the study of the asymptotic behavior of the solutions (and, more precisely, the existence of finite-dimensional attractors). We first consider the usual Neumann boundary conditions and then dynamic boundary conditions which account for the interactions with the walls in confined systems and have recently been proposed by physicists. We also present, in the case of dynamic boundary conditions, some numerical results