Class: Algolia::LoggerHelper
- Inherits:
-
Object
- Object
- Algolia::LoggerHelper
- Defined in:
- lib/algolia/logger_helper.rb
Class Method Summary collapse
Class Method Details
.create(debug_file = nil) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/algolia/logger_helper.rb', line 7 def self.create(debug_file = nil) file = debug_file || (ENV['ALGOLIA_DEBUG'] ? File.new('debug.log') : $stderr) instance = ::Logger.new file instance.progname = 'algolia' instance end |