Sha256: b71ed64c764e2554e8ba87c52c530f800c8a03bda32d98b6564a8d9e81a12330
Contents?: true
Size: 699 Bytes
Versions: 2
Compression:
Stored size: 699 Bytes
Contents
module Jekyll module Assets # TODO: jekyll/jekyll@upstream add support for blocks as messages... # NOTE: This is a temporary class, until we can go upstream and fix # the little known fact that it doesn't accept a block for a message # it is passing on. Until then we are holding this. class Logger def instance @logger ||= Jekyll.logger end %W(warn error info debug).each do |k| define_method k do |msg = nil, &block| instance.send(k, "Jekyll Assets:", block ? block.call : msg) end end def log_level=(*a) raise RuntimeError, "Please set log levels on Jekyll.logger" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-assets-2.0.0.pre.beta2 | lib/jekyll/assets/logger.rb |
jekyll-assets-2.0.0.pre.beta1 | lib/jekyll/assets/logger.rb |