Asymptotically anti–de Sitter spacetimes and scalar fields with a logarithmic branch