lib/pdksync/logger.rb in pdksync-0.6.0 vs lib/pdksync/logger.rb in pdksync-0.8.0
- old
+ new
@@ -5,10 +5,14 @@
class String
def colorize(color_code)
"\e[#{color_code}m#{self}\e[0m"
end
+ def bold
+ "\e[1m#{self}\e[22m"
+ end
+
def red
colorize(31)
end
def green
@@ -44,10 +48,10 @@
def self.fatal(message)
logger.fatal(message)
end
- def self.crit(message)
+ def self.error(message)
logger.error(message)
end
def self.log_file
if ENV['PDKSYNC_LOG_FILENAME'] && File.exist?(ENV['PDKSYNC_LOG_FILENAME'])