Basic implementation of log likelihood loss

That is why I said excluding numerical issue. Mathematically, it is only 0 at -inf.

In reality, you will need numerical stable functions/methods to avoid this.