lib/rbfs/logger.rb in rbfs-0.0.6 vs lib/rbfs/logger.rb in rbfs-0.0.7
- old
+ new
@@ -5,22 +5,26 @@
def initialize(config)
@config = config
end
def info(msg)
- puts "\033[0;32m#{msg}\033[0;37m"
+ puts "\033[0;32m#{msg}\033[00m"
end
+ def puts(msg)
+ puts "#{msg}"
+ end
+
def error(msg)
- puts "\033[0;31m#{msg}\033[0;37m"
+ puts "\033[0;31m#{msg}\033[00m"
end
def critical(msg)
- puts "\033[0;31m#{msg}\033[0;37m"
+ puts "\033[0;31m#{msg}\033[00m"
exit 1
end
def notice(msg)
- puts "\033[0;33m#{msg}\033[0;37m"
+ puts "\033[0;33m#{msg}\033[00m"
end
end
end