Sha256: c2563aeba4ce9ec5dbeb82e8179a90050b509b8fa12749ca7cef4d9da834098d

Contents?: true

Size: 588 Bytes

Versions: 31

Compression:

Stored size: 588 Bytes

Contents

module Celluloid
  # Wraps a single log event.
  class LogEvent
    attr_accessor :id, :severity, :message, :progname, :time

    def initialize(severity, message, progname, time=Time.now, &block)
      # This id should be ordered. For now relies on Celluloid::UUID to be ordered.
      # May want to use a generation/counter strategy for independence of uuid.
      @id = Celluloid::UUID.generate
      @severity = severity
      @message = block_given? ? yield : message
      @progname = progname
      @time = time
    end

    def <=>(other)
      @id <=> other.id
    end
  end
end

Version data entries

31 entries across 29 versions & 6 rubygems

Version Path
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/celluloid-0.16.0/lib/celluloid/logging/log_event.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/celluloid-0.16.0/lib/celluloid/logging/log_event.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/logging/log_event.rb
scoot-0.0.4 .bundle/gems/ruby/2.2.0/gems/celluloid-0.16.0/lib/celluloid/logging/log_event.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/celluloid-0.16.0/lib/celluloid/logging/log_event.rb
celluloid-0.16.0 lib/celluloid/logging/log_event.rb
celluloid-0.16.0.pre3 lib/celluloid/logging/log_event.rb
vagrant-tiktalik-0.0.3 vendor/bundle/ruby/2.0.0/gems/celluloid-0.15.2/lib/celluloid/logging/log_event.rb
celluloid-0.16.0.pre2 lib/celluloid/logging/log_event.rb
celluloid-0.16.0.pre lib/celluloid/logging/log_event.rb
celluloid-0.15.2 lib/celluloid/logging/log_event.rb
celluloid-0.15.1 lib/celluloid/logging/log_event.rb
celluloid-0.15.0 lib/celluloid/logging/log_event.rb
celluloid-0.15.0.pre2 lib/celluloid/logging/log_event.rb
celluloid-0.15.0.pre lib/celluloid/logging/log_event.rb
celluloid-0.14.1 lib/celluloid/logging/log_event.rb
celluloid-0.14.1.pre lib/celluloid/logging/log_event.rb
sidekiq-statsd-0.1.1 vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/log_event.rb
sidekiq-statsd-0.1.0 vendor/ruby/1.9.1/gems/celluloid-0.14.0/lib/celluloid/logging/log_event.rb
celluloid-0.14.0 lib/celluloid/logging/log_event.rb