wolframalpha.com states that $\log(0) = -\infty$
According to this QA as well as this website by the university of Minnesota $\log(0)$ is not defined. On the other hand, the definition on wikipedia states nothing about zero.
And a paper I am currently reading uses $\log(D)$ where $D \in \{0,1\}$.
So now, I'm confused as to which way is correct. Or does it depend on the context where one applies the log and both definitions ("undefined" and "$-\infty$") are common?