XF 2.1 How to add entry to moderator log?

Mr. Jinx

Well-known member
I have an addon which I want to log some actions to the moderator log.
For example, AbstractController has been extended with some actions. When the user uses one of these actions I want to write something to the moderator log.
Is there a service for this, or could someone please point me in the right direction?
$this->app()->logger()->logModeratorAction('content_type', $entity, 'action');
Top Bottom