Class: Memolog::Config
- Inherits:
-
Struct
- Object
- Struct
- Memolog::Config
- Defined in:
- lib/memolog/config.rb
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#isolation_level ⇒ Object
Returns the value of attribute isolation_level.
-
#log_size_limit ⇒ Object
Returns the value of attribute log_size_limit.
-
#middlewares ⇒ Object
Returns the value of attribute middlewares.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
10 11 12 13 14 15 16 |
# File 'lib/memolog/config.rb', line 10 def initialize self.debug = false self.formatter = Logger::Formatter.new self.isolation_level = :thread self.log_size_limit = 50_000 self.middlewares = %i[rails sidekiq] end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug
3 4 5 |
# File 'lib/memolog/config.rb', line 3 def debug @debug end |
#formatter ⇒ Object
Returns the value of attribute formatter
3 4 5 |
# File 'lib/memolog/config.rb', line 3 def formatter @formatter end |
#isolation_level ⇒ Object
Returns the value of attribute isolation_level
3 4 5 |
# File 'lib/memolog/config.rb', line 3 def isolation_level @isolation_level end |
#log_size_limit ⇒ Object
Returns the value of attribute log_size_limit
3 4 5 |
# File 'lib/memolog/config.rb', line 3 def log_size_limit @log_size_limit end |
#middlewares ⇒ Object
Returns the value of attribute middlewares
3 4 5 |
# File 'lib/memolog/config.rb', line 3 def middlewares @middlewares end |