Module: Adalog::SimpleLoggingAdapter

Defined in:
lib/adalog/simple_logging_adapter.rb

Defined Under Namespace

Classes: Base

Class Method Summary collapse

Class Method Details

.new(service_name, repo) ⇒ Object



4
5
6
7
8
9
# File 'lib/adalog/simple_logging_adapter.rb', line 4

def self.new(service_name, repo)
  new_logger_class = Class.new(self::Base)
  new_logger_class.instance_variable_set(:@service_name, service_name)
  new_logger_class.instance_variable_set(:@repo, repo)
  new_logger_class
end