Sha256: a5f92914c10efdd27b9a6e010a0f4a58f16c4def4aee9609ed037c8f5d263ca9
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
module Jekyll module Assets class Logger Prefix="Jekyll Assets:" def log @_log ||= Jekyll.logger end # ----------------------------------------------------------------------- # Log Level: 1 # ----------------------------------------------------------------------- def warn(msg = nil, &block) log.warn(Prefix, (block_given?? block.call : msg)) end # ----------------------------------------------------------------------- # Log Level: 1 # ----------------------------------------------------------------------- def error(msg = nil, &block) log.error(Prefix, (block_given?? block.call : msg)) end # ----------------------------------------------------------------------- # Log Level: 2 # ----------------------------------------------------------------------- def info(msg = nil, &block) log.info(Prefix, (block_given?? block.call : msg)) end # ----------------------------------------------------------------------- # Log Level: 3 # ----------------------------------------------------------------------- def debug(msg = nil, &block) log.debug(Prefix, (block_given?? block.call : msg)) 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.beta4 | lib/jekyll/assets/logger.rb |
jekyll-assets-2.0.0.pre.beta3 | lib/jekyll/assets/logger.rb |