add logloss metric in both offline and online mode