From e3594728706db09aae99401b317fdb64a9751b2e Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 22 Jul 2013 11:30:19 +0200 Subject: [PATCH] May as well add Stevenson#debug --- lib/jekyll/stevenson.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/jekyll/stevenson.rb b/lib/jekyll/stevenson.rb index 5be5f04c..12e65651 100644 --- a/lib/jekyll/stevenson.rb +++ b/lib/jekyll/stevenson.rb @@ -15,6 +15,16 @@ module Jekyll def initialize(level = INFO) @log_level = level 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 #