1.0.7 • Published 9 years ago
babel-plugin-logs-paths v1.0.7
Babel Plugin Logs Paths
A fork of babel-plugin-meaningful-logs A babel plugin that enhances your logs by adding the file and the object logging.
Installation
npm i babel-plugin-logs-paths --save-devor
yarn add babel-plugin-logs-paths --devUsage
console.log(b.length)becomes
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: [
['logs-paths',
{loggers: [{pattern: 'winston'}]}
]
]
}Contribute
- Submit an issue
- Fork the repository
- Create a dedicated branch (never ever work in
master) - The first time, run command:
yarninto the directory - Fix bugs or implement features
License
This project is licensed under the terms of the MIT license