Elegant-Logs
Helps to create beautiful looking logs.
Setup
if you have npm installed run 'npm install --save elegant-logs'
var logs = require('elegant-logs');
logs.log('test', '|Elegant |', 'blue', 'bgred');
logs.cmd('test', 'bgred', 'blue');
logs.status('test', 'bggreen', 'green');
logs.boot('test', 'red', 'green');
logs.success('test', 'red', 'blue');
logs.error('test', 'purple', 'bgpurple');
logs.critical('test', 'bgpurple', 'yellow');
#types
elegant-logs comes with many default types of logs.
these include,
sucess - 'success'
critical - 'critical'
cmd - 'CMD' ![CMD]
status - plain ol' 'STATUS'
boot - explains itself
error - Do i need to tell you what this one is???
custom - see below for more information
~see below for color numbers~
#log
log - lets you take control of every element of your log.
logs.log('test', '|Elegant |', 'lognamecolor', 'textcolor');
###Example:
logs.log('test', '|Elegant |', 'bgyellow', 'red');```
#Colors & Effects
Note: You may only use 1 color for each 'color slot'
Text color
black
red
green
yellow
blue
purple
cyan
white
Background color
bgwhite
bgblack
bgred
bggreen
bgyellow
bgblue
bgpurple
bgcyan
#Plog
Gone in latest build...