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



87
88
89
90
91
92
93
# File 'lib/elastic_graph/support/logger.rb', line 87

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