I was wondering if this log action should not be done in the controller ? or even on a after middleware for  performance gain ?