No commit activity in last 3 years
No release in over 3 years
Spark is an easy to use CLI logger module that logs in color.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.13
~> 10.0
~> 3.0
~> 0.12.0

Runtime

~> 1.2
 Project Readme

Spark banner

Spark Gem Version Build Status codecov

Spark is an easy to use CLI logger module that logs in color. 🎉

Installation

Add this line to your application's Gemfile:

gem 'spark_cli'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install spark_cli

Usage

Usage is very simple.

require 'Spark'
spark = Spark::Fire.new
spark.info('This is an info message')

There are several log types to use

@@spark.info('This is an Info message')
@@spark.error('This is an Error message')
@@spark.important('This is an important message')
@@spark.message('This is a regular message')
@@spark.warning('This is a warning message')
@@spark.success('Yayyy it worked')

That code will result in

Spark screenshot

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install.

Contributing

Bug reports and pull requests are welcome at https://github.com/PiXel16/Spark.

Author

Chris Jimenez - http://code.chrisjimenez.net, @chrisjimeneznat