Colors for levels
Colorize our level
@param [String, Symbol] level
@see Padrino::Logging::ColorizedLogger::ColoredLevels
# File lib/padrino-core/logger.rb, line 195 def colorize(string, *colors) colors.each do |c| string = string.send(c) end string end
# File lib/padrino-core/logger.rb, line 202 def stylized_level(level) style = ColoredLevels[level].map { |c| "\e[%dm" % String.colors[c] } * '' [style, super, "\e[0m"] * '' end
[Validate]
Generated with the Darkfish Rdoc Generator 2.