Sha256: 169a874e40805f2192fc84d22146e47c727c789f66f0c484a5aa7499a3e73352
Contents?: true
Size: 348 Bytes
Versions: 5
Compression:
Stored size: 348 Bytes
Contents
require 'logger' module WorldLogger def self.logger if @logger.nil? @logger ||= Logger.new($stdout) @logger.level = Logger::ERROR end @logger end def logger if self.class.const_defined? :Rails Rails.logger else WorldLogger.logger end end end Object.send :include, WorldLogger
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
elia-1.2.0 | lib/world_logger.rb |
elia-1.1.0 | lib/world_logger.rb |
elia-1.0.2 | lib/world_logger.rb |
elia-1.0.1 | lib/world_logger.rb |
elia-1.0.0 | lib/world_logger.rb |