Class: LogStasher::ActiveSupport::MailerLogSubscriber

Inherits:
ActiveSupport::LogSubscriber
  • Object
show all
Defined in:
lib/logstasher/active_support/mailer_log_subscriber.rb

Constant Summary collapse

MAILER_FIELDS =
[:mailer, :action, :message_id, :from, :to]

Instance Method Summary collapse

Instance Method Details

#deliver(event) ⇒ Object



9
10
11
# File 'lib/logstasher/active_support/mailer_log_subscriber.rb', line 9

def deliver(event)
  process_event(event, ['mailer', 'deliver'])
end

#loggerObject



21
22
23
# File 'lib/logstasher/active_support/mailer_log_subscriber.rb', line 21

def logger
  LogStasher.logger
end

#process(event) ⇒ Object



17
18
19
# File 'lib/logstasher/active_support/mailer_log_subscriber.rb', line 17

def process(event)
  process_event(event, ['mailer', 'process'])
end

#receive(event) ⇒ Object



13
14
15
# File 'lib/logstasher/active_support/mailer_log_subscriber.rb', line 13

def receive(event)
  process_event(event, ['mailer', 'receive'])
end