Object
# File lib/backup/logger/console.rb, line 37 def initialize(options = nil) $stdout.sync = $stderr.sync = true end
# File lib/backup/logger/console.rb, line 41 def log(message) io = message.level == :info ? $stdout : $stderr lines = message.formatted_lines lines.map! {|line| COLORS[message.level] % line } if io.tty? io.puts lines end
[Validate]
Generated with the Darkfish Rdoc Generator 2.