Module: ElasticGraph::Support::Logger::Factory

Defined in:
lib/elastic_graph/support/logger.rb

Class Method Summary collapse

Class Method Details

.build(config:, device: nil) ⇒ Object



23
24
25
26
27
28
29
# File 'lib/elastic_graph/support/logger.rb', line 23

def self.build(config:, device: nil)
  ::Logger.new(
    device || config.prepared_device,
    level: config.level,
    formatter: config.formatter
  )
end