Add Logging to model plugin