|
@ -4,7 +4,7 @@ module Semantic |
|
|
class LogSubscriber |
|
|
class LogSubscriber |
|
|
attr_reader :logger, :event_group |
|
|
attr_reader :logger, :event_group |
|
|
|
|
|
|
|
|
def initialize(logger_name = nil) |
|
|
|
|
|
|
|
|
def initialize(logger_name = nil, **_options) |
|
|
@event_group = self.class.name.demodulize.underscore.to_sym |
|
|
@event_group = self.class.name.demodulize.underscore.to_sym |
|
|
@logger = SemanticLogger[logger_name || @event_group] |
|
|
@logger = SemanticLogger[logger_name || @event_group] |
|
|
end |
|
|
end |
|
|