I am trying to see how the following statement about trace $Tr$ is true.
$$ Tr(\chi(\rho_A) \log(\chi(\rho_A)) = Tr(\rho_A \log(\chi(\rho_A)), $$ for some quantum state $\rho_A$, Where,
$$ \chi(.) = \sum_x |X^x\rangle\langle X^x| (.) |X^x\rangle\langle X^x| $$ is a measurement map. I have tried to write out a spectral decomposition of the state $\rho_A$,
$$ \rho_A = \sum_i \lambda_i |\lambda_i \rangle \langle \lambda_i|, $$ and then insert it into the equation. However, I don't see how to work with s sum inside a matrix logarithm. Any help would be highly appreciated.