3 Console for ruby is: Colored, Nesting, Multiple, Smart logging management.
10 [http://github.com/ktlacaelel/cobalt/wiki/example.png]
16 stdout = Logger.new(STDOUT) # log to std out, and but dont prefix with anything!
17 stdout.formatter = proc { |severity, datetime, progname, msg| "#{msg}\n" }
19 console = Cobalt::Console.new :loggers => [stdout]
22 console.log 'Initializing Console sample..'
25 console.notice 'notice'
31 console.log 'Remember the color, for a few lines..'
33 console.color(:pink) do
34 console.log 'all this'
36 console.log 'colored pink'
45 Copyright (c) 2012 kazuyoshi tlacaelel. See LICENSE for details.