Class: Karafka::Instrumentation::Logger

Inherits:
Logger
  • Object
show all
Defined in:
lib/karafka/instrumentation/logger.rb

Overview

Note:

It uses ::Logger features - providing basic logging

Default logger for Event Delegator

Instance Method Summary collapse

Constructor Details

#initialize(*_args) ⇒ Logger

Creates a new instance of logger ensuring that it has a place to write to

Parameters:

  • _args

    Any arguments that we don’t care about but that are needed in order to make this logger compatible with the default Ruby one



22
23
24
25
# File 'lib/karafka/instrumentation/logger.rb', line 22

def initialize(*_args)
  super(target)
  self.level = ENV_MAP[Karafka.env] || ENV_MAP['default']
end