May as well add Stevenson#debug
This commit is contained in:
parent
c6a37a424b
commit
e359472870
|
@ -15,6 +15,16 @@ module Jekyll
|
||||||
def initialize(level = INFO)
|
def initialize(level = INFO)
|
||||||
@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
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue