Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
art
 
 
bin
 
 
lib
 
 
 
 
web
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

About

Easy to use CLI logger module

Resources

License

Releases

No releases published

Packages

No packages published