We have:
$$\log_a{x^n}=\log_a{\left( x\cdot x \cdot x \cdot ...\cdot x\right)}=\log_a(x)+\log_a(x)+...+\log_a(x)=n\log_a(x)$$
But, $$ \ln\left(-1\right)^2=\ln{\left(-1\right)^2}\\\ln(1)=2\ln(-1)\\ 0=2i\pi$$
or
$$ \log_a(-1)^3=\log_a(-1)^3 \\ \log_a(-1)=3\log_a(-1) \\1=3 $$
So, if the "identity" first written is just for $x\in\mathbb{R}| x>0$ tell me why, or where I'm I failing at!
If you'd like to use the identity $$ \ln x^n=n \ln x, $$ you should consider the definition of logarithm as a multivalued function: $$ \textrm{Ln}\, z=\ln |z|+i \mathrm{Arg}\, z=\ln |z|+i(\theta+2\pi k), $$ i.e., there are infinitely many values. Using this definition your examples are valid: $$ \textrm{Ln}\,(-1)^2=\textrm{Ln}\, (-1)^2\\ \textrm{Ln}\,1=2 \textrm{Ln}\, (-1)\\ i 2\pi k=2i(\pi+2\pi m), $$ where the last equality is understood modulo $2\pi k i$.