Class | Nanoc::CLI::Logger |
In: |
lib/nanoc/cli/logger.rb
|
Parent: | Object |
Nanoc::CLI::Logger is a singleton class responsible for generating feedback in the terminal.
ACTION_COLORS | = | { :create => "\e[32m", # green :update => "\e[33m", # yellow :identical => "", # (nothing) :skip => "", # (nothing) :delete => "\e[31m" | Maps actions (`:create`, `:update`, `:identical`, `:skip` and `:delete`) onto their ANSI color codes. |
Logs a message.
@param [:high, :low] level The importance of this message
@param [String] message The message to be logged
@param [puts] io The stream to which the message should be written
@return [void]