Sha256: 02e2afdd442c20192c6137f6cc0554c55ebd3bb5abae3305864592d3793d21e5

Contents?: true

Size: 510 Bytes

Versions: 3

Compression:

Stored size: 510 Bytes

Contents

class LogMethod::Config
  attr_accessor :after_log_proc,
                :current_actor_id_label,
                :current_actor_proc,
                :external_identifier_method,
                :trace_id_proc

  def initialize
    reset!
  end

  def reset!
    @after_log_proc             = NO_OP
    @current_actor_id_label     = "current_actor_id"
    @current_actor_proc         = NO_OP
    @external_identifier_method = nil
    @trace_id_proc              = NO_OP
  end

private

  NO_OP = ->(*) {}
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
log_method-1.1.0 lib/log_method/config.rb
log_method-1.0.0 lib/log_method/config.rb
log_method-1.0.0.pre.beta1 lib/log_method/config.rb