Sha256: 588b1d15fd9e0d47ba90f83043124e74c96d3646d002c90f0269f44e55abd9e3
Contents?: true
Size: 479 Bytes
Versions: 6
Compression:
Stored size: 479 Bytes
Contents
Inferno::Application.boot(:logging) do init do logger = if Inferno::Application.env == :test log_file_directory = File.join(Dir.pwd, 'tmp') FileUtils.mkdir_p(log_file_directory) log_file_path = File.join(log_file_directory, 'test.log') log_file = File.open(log_file_path, File::WRONLY | File::APPEND | File::CREAT) Logger.new(log_file) else Logger.new($stdout) end register('logger', logger) end end
Version data entries
6 entries across 6 versions & 1 rubygems