Class: Lamian::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/lamian/config.rb

Overview

General lamian configuration class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



12
13
14
15
# File 'lib/lamian/config.rb', line 12

def initialize
  self.formatter = ::Logger::Formatter.new
  self.raven_log_size_limit = 500_000
end

Instance Attribute Details

#formatterLogger::Foramtter

formatter to use in lamian, global

Returns:

  • (Logger::Foramtter)

    the current value of formatter



11
12
13
# File 'lib/lamian/config.rb', line 11

def formatter
  @formatter
end

#raven_log_size_limitInteger

size limit when sending lamian log to sentry, defaults to 500_000

Returns:

  • (Integer)

    the current value of raven_log_size_limit



11
12
13
# File 'lib/lamian/config.rb', line 11

def raven_log_size_limit
  @raven_log_size_limit
end