Yep, and the results of this cost function are very similar to that of cross entropy. Thanks!
On a curios note, why outputs should be log-probabilities? Is that just for numerical reasons or something deeper?