You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
434 B
18 lines
434 B
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
|