Module: Logging::Appenders

Defined in:
lib/logging/appenders/airbrake/railtie.rb,
lib/logging/appenders/airbrake.rb

Defined Under Namespace

Classes: Airbrake

Class Method Summary collapse

Class Method Details

.airbrake(*args) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/logging/appenders/airbrake.rb', line 5

def self.airbrake(*args)
  if args.empty?
    return self["airbrake"] || Logging::Appenders::Airbrake.new
  end

  Logging::Appenders::Airbrake.new(*args)
end