Add log functionality to ma_object