May as well add Stevenson#debug

This commit is contained in:
Parker Moore 2013-07-22 11:30:19 +02:00
parent c6a37a424b
commit e359472870
1 changed files with 10 additions and 0 deletions

View File

@ -16,6 +16,16 @@ module Jekyll
@log_level = level @log_level = level
end end
# Public: Print a jekyll debug message to stdout
#
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.
# message - the message detail
#
# Returns nothing
def debug(topic, message = nil)
$stdout.puts(message(topic, message)) if log_level <= DEBUG
end
# Public: Print a jekyll message to stdout # Public: Print a jekyll message to stdout
# #
# topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc. # topic - the topic of the message, e.g. "Configuration file", "Deprecation", etc.