lib/memolog/config.rb in memolog-0.1.0 vs lib/memolog/config.rb in memolog-0.2.0
- old
+ new
@@ -1,10 +1,19 @@
# frozen_string_literal: true
-Memolog::Config = Struct.new(:formatter, :uuid_callable, :sentry_key, :log_size_limit) do
+Memolog::Config = Struct.new(
+ :debug,
+ :formatter,
+ :initializers,
+ :log_size_limit,
+ :sentry_key,
+ :uuid_callable,
+) do
def initialize
+ self.debug = false
self.formatter = ::Memolog::Formatter.new
- self.uuid_callable = -> { SecureRandom.uuid }
- self.sentry_key = :memolog
+ self.initializers = %i[rails sentry sidekiq]
self.log_size_limit = 50_000
+ self.sentry_key = :memolog
+ self.uuid_callable = -> { SecureRandom.uuid }
end
end