Skip to content

jetdream/babel-plugin-meaningful-logs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Babel Plugin Meaningful Logs

A babel plugin that enhances your logs by adding the file and the object logging.

Example

"use strict"
console.log(b.length)

becomes

"use strict"
console.log("pathToFile:2:8:b.length", b.length)

By default it modifies all console commands: console.error, console.log... But it can be customized. To modify all winstons logs the .babelrc file would be:

{
  plugins: [
    ['meaningful-logs',
    {loggers: [{pattern: 'winston'}]}
    ]
  ]
}

About

Make your logs more descriptive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%