[mms] Add logging wrapper class to reduce serialized size of factory-created objects.