Class: Guard::UI::Logger::Config

Inherits:
Options
  • Object
show all
Defined in:
lib/guard/ui/logger.rb

Constant Summary collapse

DEFAULTS =
{
  progname: "Guard",
  level: :info,
  template: ":time - :severity - :message",
  time_format: "%H:%M:%S",
  flush_seconds: 0,

  # Other LumberJack device-specific options
  # max_size: "5M",
  # buffer_size: 0,
  # additional_lines: nil,
}.freeze

Instance Method Summary collapse

Methods inherited from Options

#fetch

Constructor Details

#initialize(options = {}) ⇒ Config

Returns a new instance of Config


20
21
22
# File 'lib/guard/ui/logger.rb', line 20

def initialize(options = {})
  super(options, DEFAULTS)
end

Instance Method Details

#level=(value) ⇒ Object


24
25
26
# File 'lib/guard/ui/logger.rb', line 24

def level=(value)
  self["level"] = value
end