Sha256: 3cbdb5a151ba9ebd96780b748664c42287803afd526ca4c598c851cca672c64d

Contents?: true

Size: 734 Bytes

Versions: 38

Compression:

Stored size: 734 Bytes

Contents

module Timber
  module Contexts
    # Tracks OS level process information, such as the process ID.
    class Runtime < Context
      @keyspace = :runtime

      attr_reader :application, :class_name, :file, :function, :line, :module_name

      def initialize(attributes)
        @application = attributes[:application]
        @class_name = attributes[:class_name]
        @file = attributes[:file]
        @function = attributes[:function]
        @line = attributes[:line]
        @module_name = attributes[:module_name]
      end

      def as_json(_options = {})
        {application: application, class_name: class_name, file: file, function: function,
          line: line, module_name: module_name}
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
timber-2.0.24 lib/timber/contexts/runtime.rb
timber-2.0.23 lib/timber/contexts/runtime.rb
timber-2.0.22 lib/timber/contexts/runtime.rb
timber-2.0.21 lib/timber/contexts/runtime.rb
timber-2.0.20 lib/timber/contexts/runtime.rb
timber-2.0.19 lib/timber/contexts/runtime.rb
timber-2.0.17 lib/timber/contexts/runtime.rb
timber-2.0.16 lib/timber/contexts/runtime.rb
timber-2.0.15 lib/timber/contexts/runtime.rb
timber-2.0.14 lib/timber/contexts/runtime.rb
timber-2.0.12 lib/timber/contexts/runtime.rb
timber-2.0.11 lib/timber/contexts/runtime.rb
timber-2.0.10 lib/timber/contexts/runtime.rb
timber-2.0.9 lib/timber/contexts/runtime.rb
timber-2.0.8 lib/timber/contexts/runtime.rb
timber-2.0.7 lib/timber/contexts/runtime.rb
timber-2.0.6 lib/timber/contexts/runtime.rb
timber-2.0.5 lib/timber/contexts/runtime.rb
timber-2.0.4 lib/timber/contexts/runtime.rb
timber-2.0.3 lib/timber/contexts/runtime.rb