Module: Jzip::Engine::Support::Notifier

Included in:
Jzip::Engine, Requirement, Minifier, Template
Defined in:
lib/jzip/engine/support/notifier.rb

Instance Method Summary collapse

Instance Method Details

#notify(message) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/jzip/engine/support/notifier.rb', line 7

def notify(message)
  string = wrap(message)
  case Jzip::Engine.options[:log_level]
  when :console
    puts string
  when :error, :info, :debug
    Rails.logger.send Jzip::Engine.options[:log_level], string
  end
end