Published 2020-10-03.
Last modified 2023-11-21.
Time to read: 1 minutes.
jekyll_plugins
collection.
Formerly known as logger_factory
,
jekyll_
is a Jekyll plugin packaged as a Ruby gem that provides colored console logs.
All of my plugins use jekyll_
for notifying the user that the plugin has loaded
and for generating log messages.
I wrote it up separately.
Installation
To A Jekyll Website
Add the following to your Jekyll website’s Gemfile
:
group :jekyll_plugins do gem 'jekyll_plugin_logger' end
Install all the dependent gems of your Jekyll website by typing:
$ bundle
To A Jekyll Plugin Packaged As A Gem
Add the following to your Gem’s .gemspec
:
Gem::Specification.new do |spec| spec.add_dependency 'jekyll_plugin_logger' end
Install all the dependent gems of your Jekyll website by typing:
Run the Demo
Run the demo by typing:
$ demo/_bin/debug -r
See what happens to the console output when you edit the logging levels in the plugin_loggers
section of _config.yml
.
You will have to restart the demo and touch demo/index.html
after each modification to _config.yml
to see the output change.