W3cubDocs

/Padrino

Module: Padrino::Logger::Colorize

Constant Summary

ColoredLevels =
{
  :fatal => [:bold, :red],
  :error => [:default, :red],
  :warn  => [:default, :yellow],
  :info  => [:default, :green],
  :debug => [:default, :cyan],
  :devel => [:default, :magenta]
}

Instance Method Summary

Instance Method Details

#colorize(string, *colors) ⇒ Object

Colorize our level.

Parameters:

See Also:

  • Padrino::Logging::ColorizedLogger::ColoredLevels

#stylized_level(level) ⇒ Object

© 2010–2016 Padrino
Licensed under the MIT License.
http://www.rubydoc.info/github/padrino/padrino-framework/Padrino/Logger/Colorize