WeightLogger class implementation