Sha256: 91e2cf8528c267ebf0bcc495bb1ee6d04c33c20a839a312612d6fec2da0c859c
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
require 'logger' module Aggro # Private: Mixin for logging concerns. module Logging include Logger::Severity def log(level, progname, message = nil, &block) (@logger || Aggro.logger).call level, progname, message, &block rescue => e $stderr.puts '`Aggro.logger` failed to log ' \ "#{[level, progname, message, block].join(' ')}\n" \ "#{e.message} (#{e.class})\n#{e.backtrace.join "\n"}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aggro-0.0.4 | lib/aggro/logging.rb |