Sha256: ce484ec25afc5625ae4bc1eb537ae10cd6b3a28babe60e59b735618f7543ab52

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

module ModelLog
  class Config
    attr_accessor :current_user_method, :identity_field, :separator, :formatter,
                  :logger_level, :logger_datetime_format

    def initialize
      @current_user_method ||= :current_user
      @identity_field      ||= :id
      @separator           ||= "\t"
      @formatter           ||= Default::Formatter
      @logger_level        ||= Logger::INFO  # DEBUG < INFO < WARN < ERROR < FATAL < UNKNOWN
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
model_log-2.0.0 lib/model_log/config.rb