Skip to content

bsharpe/turner_logs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Turner Logs

Colorize your B&W Rails logs

example

e.g. Rails.logger.debug "This <c!>is a test"

The Codex

lowercase - font color
uppercase - background color

k => black
r => red
g => green
y => yellow
b => blue
m => magenta
c => cyan
w => white
! => <bright/bold>

how to use

in your Gemfile

require 'turner_logs'

that's it.

Now when you want to print out a colorized log statment, you do something like:

Rails.logger.debug "<g>Everything is <Wb>OK."  

About

Colorlize your B&W Rails logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages