module Semantic module Subscribers class LogSubscriber attr_reader :logger, :event_group def initialize(event_group) @event_group = event_group @logger = SemanticLogger[event_group.to_s] end def any_hook(event) logger.warn( "#{@event_group} hook=<#{event.name.split('.')[0]}> needs a proper message handling!", event.payload.keys ) end end end end