Sha256: a8b7c780058d9f844a8e9078178d8ef32018c549c192363a94d08f1328236233
Contents?: true
Size: 1021 Bytes
Versions: 4
Compression:
Stored size: 1021 Bytes
Contents
# frozen_string_literal: true module Logster class Configuration attr_accessor( :allow_grouping, :application_version, :current_context, :env_expandable_keys, :enable_custom_patterns_via_ui, :enable_js_error_reporting, :environments, :rate_limit_error_reporting, :web_title, :maximum_message_size_bytes ) attr_writer :subdirectory def initialize # lambda |env,block| @current_context = lambda { |_, &block| block.call } @environments = [:development, :production] @subdirectory = nil @env_expandable_keys = [] @enable_custom_patterns_via_ui = false @rate_limit_error_reporting = true @enable_js_error_reporting = true @maximum_message_size_bytes = 60_000 @allow_grouping = false if defined?(::Rails) && defined?(::Rails.env) && ::Rails.env.production? @allow_grouping = true end end def subdirectory @subdirectory || '/logs' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
logster-2.5.1 | lib/logster/configuration.rb |
logster-2.5.0 | lib/logster/configuration.rb |
logster-2.4.2 | lib/logster/configuration.rb |
logster-2.4.1 | lib/logster/configuration.rb |