• Resolved wa11e

    (@wa11e)


    I have added a custom sensor in order to track log events for a custom tool that I built in WP. With version 4, I have updated the triggers to also send event object and type.

    However I need to add a new event object, sense non of the built in objects doesn’t fit. So what I did was to add that object to via the wsal_event_objects filter:

    
        add_filter('wsal_event_objects', 'myCustomEventObjects', 10, 1);
        public function myCustomEventObjects($objects)
        {
            $objects['my-custom-plugin'] = __('My custom plugin', 'your-textdomian');
            asort($objects);
            return $objects;
        }
    

    This seams to work with the exception for log viewer grid. Each row that have been tagged with “my-custom-plugin” event object have a blank object cell.

    Is there a way for me to fix this? Or do you need to add support for this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Support for custom event objects (custom sensor)?’ is closed to new replies.