Class: ElasticGraph::Support::Logger::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/elastic_graph/support/logger.rb

Instance Method Summary collapse

Instance Method Details

#prepared_deviceObject



55
56
57
58
59
60
61
62
63
# File 'lib/elastic_graph/support/logger.rb', line 55

def prepared_device
  case device
  when "stdout" then $stdout
  when "stderr" then $stderr
  else
    ::Pathname.new(device).parent.mkpath
    device
  end
end