Is the scoring function F1 or logloss?

From my point of view it would be painful to take the one with the best partial score as we have one with almost the same partial score that we think could generalize better.