Sha256: 86ebd18dbefaa68edc7351b7cafa2717489765a45737d58e3b596c0dc12e70a2
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
module Octopress module Formatters class BaseFormatter < Logger::Formatter COLORS = { "ERROR" => "red", "WARN" => "yellow", "INFO" => "green", "DEBUG" => "white" } def call(severity, timestamp, progname, msg) (progname || msg).to_s.send(COLORS[severity]) + "\n" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
octopress-3.0.0.alpha2 | lib/octopress/formatters/base_formatter.rb |
octopress-3.0.0.alpha1 | lib/octopress/formatters/base_formatter.rb |