Sha256: c4b13a6d04c2f62b35e388dd7377702ed55c7a0ab55e8ff873858099304c216d
Contents?: true
Size: 579 Bytes
Versions: 39
Compression:
Stored size: 579 Bytes
Contents
# encoding: UTF-8 module ForestLiana class Logger class << self def log logger = ::Logger.new(STDOUT) logger_colors = { DEBUG: 34, WARN: 33, ERROR: 31, INFO: 37 } logger.formatter = proc do |severity, datetime, progname, message| displayed_message = "[#{datetime.to_s(:db)}] Forest 🌳🌳🌳 #{message}\n" "\e[#{logger_colors[severity.to_sym]}m#{displayed_message}\033[0m" end logger end end end end FOREST_LOGGER = ForestLiana::Logger.log
Version data entries
39 entries across 39 versions & 1 rubygems