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



32
33
34
35
36
37
38
# File 'lib/simple_structured_logger.rb', line 32

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

#expand_log(&block) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/simple_structured_logger.rb', line 40

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