Module: Logging::Appenders

Defined in:
lib/logging/appenders/papertrail.rb

Defined Under Namespace

Classes: Papertrail

Class Method Summary collapse

Class Method Details

.papertrail(*args) ⇒ Object

Factory for the Papertrails appender.



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

def self.papertrail(*args)
  str = '::Logging::Appenders::Rollbar needs a name as first argument.'
  fail ArgumentError, str if args.empty?
  ::Logging::Appenders::Papertrail.new(*args)
end