Sha256: 537001865bb009407306ebff9a92147766d3875ee07f2cd828e6cc91e0f03c1e

Contents?: true

Size: 1.01 KB

Versions: 140

Compression:

Stored size: 1.01 KB

Contents

# :nodoc:
module Log4r

  ##
  # LogEvent wraps up all the miscellaneous data associated with a logging
  # statement. It gets passed around to the varied components of Log4r and
  # should be of interest to those creating extensions.
  #
  # Data contained: 
  #
  # [level]    The integer level of the log event. Use LNAMES[level]
  #            to get the actual level name.
  # [tracer]   The execution stack returned by <tt>caller</tt> at the
  #            log event. It is nil if the invoked Logger's trace is false.
  # [data]     The object that was passed into the logging method.
  # [name]     The name of the logger that was invoked.
  # [fullname] The fully qualified name of the logger that was invoked.
  #
  # Note that creating timestamps is a task left to formatters.

  class LogEvent
    attr_reader :level, :tracer, :data, :name, :fullname
    def initialize(level, logger, tracer, data)
      @level, @tracer, @data = level, tracer, data
      @name, @fullname = logger.name, logger.fullname
    end
  end
end

Version data entries

140 entries across 102 versions & 19 rubygems

Version Path
vagrant-unbundled-2.2.19.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.18.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.16.0 vendor/bundle/ruby/3.0.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.14.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/logevent.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/log4r-1.1.10/lib/log4r/logevent.rb