Module | Facter::Core::Logging |
In: |
lib/facter/core/logging.rb
|
GREEN | = | "[0;32m" | @api private | |
RESET | = | "[0m" | @api private |
Used to register a callback that is called when a message is logged. If a block is given, Facter will not log messages. If a block is not given, Facter will resume logging messages. @param block [Proc] the callback to call when a message is logged.
The first argument to the callback will be a symbol representing a level. The supported levels are: :trace, :debug, :info, :warn, :error, and :fatal. The second argument to the callback will be a string containing the message that was logged.
@api public
Enable or disable logging of timing information
@param bool [true, false] @return [void]
@api private
Prints a warning message. The message is only printed if debugging is enabled.
@param msg [String] the warning message to be printed
@return [void]