lib/phi_attrs/configure.rb in phi_attrs-0.2.2 vs lib/phi_attrs/configure.rb in phi_attrs-0.2.4

- old
+ new

@@ -1,9 +1,11 @@ # frozen_string_literal: true module PhiAttrs @@log_path = nil + @@log_shift_age = 0 # Default to disabled + @@log_shift_size = 1048576 # 1MB - Default from logger class @@current_user_method = nil @@translation_prefix = 'phi' def self.configure yield self if block_given? @@ -13,9 +15,25 @@ @@log_path end def self.log_path=(value) @@log_path = value + end + + def self.log_shift_age + @@log_shift_age + end + + def self.log_shift_age=(value) + @@log_shift_age = value + end + + def self.log_shift_size + @@log_shift_size + end + + def self.log_shift_size=(value) + @@log_shift_size = value end def self.translation_prefix @@translation_prefix end