New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

elegant-logs

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elegant-logs

Helps to create beautiful looking logs.

  • 1.2.1
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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...

Keywords

FAQs

Package last updated on 29 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc