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.
-
#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.
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
#formatter ⇒ Logger::Foramtter
formatter to use in lamian, global
11 12 13 |
# File 'lib/lamian/config.rb', line 11 def formatter @formatter end |
#raven_log_size_limit ⇒ Integer
size limit when sending lamian log to sentry, defaults to 500_000
11 12 13 |
# File 'lib/lamian/config.rb', line 11 def raven_log_size_limit @raven_log_size_limit end |