Module: SimpleStructuredLogger::Configuration

Extended by:
Configuration
Included in:
Configuration
Defined in:
lib/simple_structured_logger.rb

Instance Method Summary collapse

Instance Method Details

#expand_context(&block) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/simple_structured_logger.rb', line 22

def expand_context(&block)
  if block.nil?
    @expand_context = block
  else
    @expand_context
  end
end

#expand_log(&block) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/simple_structured_logger.rb', line 30

def expand_log(&block)
  if block.nil?
    @expand_log = block
  else
    @expand_log
  end
end