This plugin transforms console statements to include some extra parameters.
In
console.info('hello');Out
console.info("[INFO ]", new Date().toISOString(), "[FILENAME:LINE_NUM]", "info");npm install --save-dev acoll/babel-plugin-loginator.babelrc
//without options
{
"plugins": [
"loginator"
]
}
//with options
{
"plugins": [
[
"loginator",
{
"colors": true
}
]
]
}
### Via CLI
```sh
babel --plugins loginator script.jsboolean, defaults to false.
When set to true, this will colorize the log level string using Marak/colors.js.