Sha256: a86baf573b4aab9d011940fb09f49651b491ef4545ecd6606cc4e4e85948ee9a
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
module Failsafe module Backends # Failure backend to log errors to stderr class Stderr < Base def self.logger @logger ||= ::Logger.new($stderr).tap { |l| l.formatter = Logger::Formatter.new } end def save msg = [] msg << exception.message msg << exception.backtrace.join("\n") self.class.logger.error(msg.join) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
failsafe-0.2.1 | lib/failsafe/backends/stderr.rb |
failsafe-0.2.0 | lib/failsafe/backends/stderr.rb |
failsafe-0.1.0 | lib/failsafe/backends/stderr.rb |