Sha256: 509c6e43931ae79cc71219f743a6b3bedf3be7ab99e0aeccd987b65d50c84087
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blazing-0.2.1 | lib/blazing/logger.rb |