Sha256: bdd1b10efc64aaad704f7771fd749e51738996fc359b58c2c3d4876ad96cddaf
Contents?: true
Size: 541 Bytes
Versions: 2
Compression:
Stored size: 541 Bytes
Contents
require 'logging' include Logging.globally # here we setup a color scheme called 'bright' Logging.color_scheme( 'bright', :levels => { :debug => :green, :info => :green, :warn => :yellow, :error => [:white, :on_red], :fatal => [:white, :on_red] } ) Logging.appenders.stdout( 'stdout', :layout => Logging.layouts.pattern( :pattern => ' ------> [blazing] %-5l: %m\n', :color_scheme => 'bright' ) ) Logging.logger.root.appenders = 'stdout' Logging.logger.root.level = :info Logging.consolidate :root
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.2.3 | lib/blazing/logger.rb |
blazing-0.2.2 | lib/blazing/logger.rb |