When you take the logarithm of a power, the exponent moves out front as a multiplier: .
For example, . And indeed, .
This is the most powerful property for complexity analysis. When you have , you can simplify it to , which is still because the constant drops in Big-O notation.