Class: Lamian::Config
- Inherits:
-
Struct
- Object
- Struct
- Lamian::Config
- Defined in:
- lib/lamian/config.rb
Overview
General lamian configuration class
Instance Attribute Summary collapse
-
#formatter ⇒ Logger::Foramtter
formatter to use in lamian, global.
-
#max_log_length ⇒ Object
Returns the value of attribute max_log_length.
-
#max_log_lines ⇒ Integer
max number of most recent log lines to store, defaults to 5000.
-
#middleware_autoset ⇒ BOolean
automatically setup a middleware module during rails initialization process.
-
#raven_log_size_limit ⇒ Integer
size limit when sending lamian log to sentry, defaults to
500_000.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
20 21 22 23 24 25 26 |
# File 'lib/lamian/config.rb', line 20 def initialize self.formatter = ::Logger::Formatter.new self.max_log_lines = 5000 self.max_log_length = 10_000 self.raven_log_size_limit = 500_000 self.middleware_autoset = true end |
Instance Attribute Details
#formatter ⇒ Logger::Foramtter
formatter to use in lamian, global
13 14 15 |
# File 'lib/lamian/config.rb', line 13 def formatter @formatter end |
#max_log_length ⇒ Object
Returns the value of attribute max_log_length
13 14 15 |
# File 'lib/lamian/config.rb', line 13 def max_log_length @max_log_length end |
#max_log_lines ⇒ Integer
max number of most recent log lines to store, defaults to 5000
13 14 15 |
# File 'lib/lamian/config.rb', line 13 def max_log_lines @max_log_lines end |
#middleware_autoset ⇒ BOolean
automatically setup a middleware module during rails initialization process
13 14 15 |
# File 'lib/lamian/config.rb', line 13 def middleware_autoset @middleware_autoset end |
#raven_log_size_limit ⇒ Integer
size limit when sending lamian log to sentry, defaults to 500_000
13 14 15 |
# File 'lib/lamian/config.rb', line 13 def raven_log_size_limit @raven_log_size_limit end |