lcc

lccl

Customize your console log

Showing:

Popularity

Downloads/wk

0

GitHub Stars

0

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

1

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

#lccl ###light custom console log

NPM

npm

npm version Codacy Badge Codacy Badge Code Climate Test Coverage CircleCI branch

Install

npm install lccl

Use

const lccl = require('lccl')(<LOG Prefix>,<show date>,<show gray scale>)

Samples

  • Single Prefix for all log methods
const lcclUnique = require('lccl')('TEXT UNIQUE FOR ALL OF THEM', false, true)
const lcclUniqueWithDate = require('lccl')('TEXT UNIQUE FOR ALL OF THEM',true, true)

lcclUnique.log('TEST LOG') // # TEXT UNIQUE FOR ALL OF THEM # TEST LOG
lcclUnique.info('TEST INFO') // # TEXT UNIQUE FOR ALL OF THEM # TEST INFO
lcclUnique.warn('TEST WARN') // # TEXT UNIQUE FOR ALL OF THEM # TEST WARN
lcclUnique.error('TEST ERROR') // # TEXT UNIQUE FOR ALL OF THEM # TEST ERROR

lcclUniqueWithDate.log('TEST LOG') // 2017-01-20 at 22:41:43 >> # TEXT SPECIFIC INFO # TEST LOG
lcclUniqueWithDate.info('TEST INFO') // 2017-01-20 at 22:41:43 >> # TEXT SPECIFIC INFO # TEST INFO
lcclUniqueWithDate.warn('TEST WARN') // 2017-01-20 at 22:41:43 >> # TEXT SPECIFIC INFO # TEST WARN
lcclUniqueWithDate.error('TEST ERROR') // 2017-01-20 at 22:41:43 >> # TEXT SPECIFIC INFO # TEST ERROR

  • Specified Prefix for each log methods
const lcclConfig = {
 info: 'TEXT SPECIFIC INFO',
 warn: 'TEXT SPECIFIC WARNING',
 error: 'TEXT SPECIFIC ERROR'
}
const lcclSpecific = require('lccl')(lcclConfig, false, true)
const lcclSpecificWithDate = require('lccl')(lcclConfig, true, true)

lcclSpecific.log('TEST LOG') // # TEXT SPECIFIC INFO # TEST LOG
lcclSpecific.info('TEST INFO') // # TEXT SPECIFIC INFO # TEST INFO
lcclSpecific.warn('TEST WARN') // # TEXT SPECIFIC WARNING # TEST WARN
lcclSpecific.error('TEST ERROR') // # TEXT SPECIFIC ERROR # TEST ERROR

lcclSpecificWithDate.log('TEST LOG') // 2017-01-20 at 09:27:14 >> # TEXT SPECIFIC INFO # TEST LOG
lcclSpecificWithDate.info('TEST INFO') // 2017-01-20 at 09:27:14 >> # TEXT SPECIFIC INFO # TEST INFO
lcclSpecificWithDate.warn('TEST WARN') // 2017-01-20 at 09:27:14 >> # TEXT SPECIFIC WARNING # TEST WARN
lcclSpecificWithDate.error('TEST ERROR') // 2017-01-20 at 09:27:14 >> # TEXT SPECIFIC ERROR # TEST ERROR

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial