Module: Whoop

Defined in:
lib/whoop.rb,
lib/whoop/version.rb,
lib/whoop/formatters/sql_formatter.rb,
lib/whoop/formatters/json_formatter.rb,
lib/whoop/formatters/pretty_formatter.rb,
lib/generators/whoop/install_generator.rb

Overview

Whoop.setup do |config|

config.logger = ActiveSupport::Logger.new("#{Rails.root}/log/debug.log")
config.level = :debug

end

Defined Under Namespace

Modules: Formatters, Main Classes: InstallGenerator

Constant Summary collapse

VERSION =
"1.3.0"
@@logger =
ActiveSupport::Logger.new($stdout)
@@level =
:debug

Class Method Summary collapse

Class Method Details

.setup {|Whoop::Configuration| ... } ⇒ Object

Configure the logger

Yields:

  • (Whoop::Configuration)

    The configuration object



27
28
29
# File 'lib/whoop.rb', line 27

def self.setup
  yield(self)
end