Sha256: 79e08c54c0d50cc8be17f46f22f792f03b144a1da1e93a7ba560de356d7e003a
Contents?: true
Size: 833 Bytes
Versions: 3
Compression:
Stored size: 833 Bytes
Contents
module Errplane class BlackBox attr_reader :exception def initialize(params = {}) @exception = params[:exception] end def to_json { :time => Time.now.to_i, :message => @exception.message, :backtrace => @exception.backtrace, :exception_class => @exception.class.to_s, :application_name => Errplane.configuration.application_name, :rails_root => Errplane.configuration.rails_root, :language => Errplane.configuration.language, :language_version => Errplane.configuration.language_version, :framework => Errplane.configuration.framework, :framework_version => Errplane.configuration.framework_version, :environment_variables => Errplane.configuration.environment_variables.to_hash, }.to_json end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
errplane-0.1.2 | lib/errplane/black_box.rb |
errplane-0.1.1 | lib/errplane/black_box.rb |
errplane-0.1.0 | lib/errplane/black_box.rb |