How F1 Score and Log loss calcualted?

In the submission file, each class has some value which I suppose the probability. So using those values how the F1 Score and Log loss calculated?