How do I compute the Matsubara sum
$$\sum_n \log\left(-i\omega_n +\frac{k^2}{2m}+\mu\right)?$$
If I have sums like $\sum_n \frac{1}{i\omega_n -m}$, I can sum it up by calculating the sum of residues of the function $\frac{1}{z-m}g(z)$ at the poles where $g(z)=\begin{cases} \frac{\beta}{\exp (\beta z)+1} \text{ for Fermions}\\ \frac{\beta}{\exp (\beta z)-1} \text{ for Bosons} \end{cases}$
But how do I do I compute in this case where there is a $\log$ term and there are no poles.