lib/sapience/configuration.rb in sapience-1.0.1 vs lib/sapience/configuration.rb in sapience-1.0.2
- old
+ new
@@ -6,16 +6,15 @@
# rubocop:disable ClassVars
class Configuration
attr_reader :default_level, :backtrace_level, :backtrace_level_index
attr_writer :host
- attr_accessor :application, :ap_options, :appenders, :log_executor
+ attr_accessor :app_name, :ap_options, :appenders, :log_executor
SUPPORTED_EXECUTORS = %i(single_thread_executor immediate_executor).freeze
DEFAULT = {
log_level: :info,
- application: "Sapience",
host: nil,
ap_options: { multiline: false },
appenders: [{ stream: { io: STDOUT, formatter: :color } }],
log_executor: :single_thread_executor,
}.freeze
@@ -26,11 +25,11 @@
@options = DEFAULT.merge(options.deep_symbolize_keyz!)
@options[:log_executor] &&= @options[:log_executor].to_sym
validate_log_executor!(@options[:log_executor])
self.default_level = @options[:log_level].to_sym
self.backtrace_level = @options[:log_level].to_sym
- self.application = @options[:application]
self.host = @options[:host]
+ self.app_name = @options[:app_name]
self.ap_options = @options[:ap_options]
self.appenders = @options[:appenders]
self.log_executor = @options[:log_executor]
end