Skip to content

tlvince/scoped-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scoped-log

Build Status npm version License

Npmlog with filename prefixes

const log = require('scoped-log')
log.info(__filename, 'hello')
// => info lib/my-module.js hello

Installation

npm install --save scoped-log

Usage

log[level](prefix, messages...)

... where level is one of [silly, verbose, info, http, warn, error].

Set LOG_LEVEL to the level to display logs at. Defaults to info.

Author

© 2016 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.

About

npmlog with filename prefixes

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published