$$\DeclareMathOperator{\tr}{\operatorname{tr}} \tr(\log A) = \log \det A$$
because of its well-known identity. Importantly, it is easier for a computer to find the log determinant than to compute the matrix logarithm.
I want to rewrite $\tr(B \log A)$ in the same way. We apply the power rule the same way as for scalars to get $\tr(\log A^B)$. Then, we use the well-known identity to get $\log \det A^B$.
I need help completing this solution. In its current state, I still need to compute the matrix logarithm to evaluate it.