Sha256: 19bcc7a2dd780e413fbb99fc638c70de64bd90b6f2cc986df02d37ca7506be52
Contents?: true
Size: 287 Bytes
Versions: 3
Compression:
Stored size: 287 Bytes
Contents
require 'pra/config' require 'date' module Pra class ErrorLog def self.log(error) File.open(Pra::Config.error_log_path, 'a') do |f| f.puts("#{DateTime.now.iso8601} - #{error.message}") error.backtrace.each { |line| f.puts(line) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pra-1.7.2 | lib/pra/error_log.rb |
pra-1.7.1 | lib/pra/error_log.rb |
pra-1.7.0 | lib/pra/error_log.rb |