The loss function of logistic regression is the cross-entropy loss function.