Module: BmcDaemonLib::LoggerHelper

Included in:
MqConsumer, MqEndpoint, WorkerBase
Defined in:
lib/bmc-daemon-lib/logger_helper.rb

Instance Attribute Summary collapse

Instance Attribute Details

#log_context=(value) ⇒ Object

Sets the attribute log_context

Parameters:

  • value

    the value to set the attribute log_context to.



7
8
9
# File 'lib/bmc-daemon-lib/logger_helper.rb', line 7

def log_context=(value)
  @log_context = value
end

#loggerObject

Use accessor to expose logger to Grape, as it uses logger.*



6
7
8
# File 'lib/bmc-daemon-lib/logger_helper.rb', line 6

def logger
  @logger
end