colorful-feathers-profiler
v2.3.2
Published
🧪 A more colorful Feathers service logger. Credit to feathers-profiler
Downloads
65
Readme
Colorful Feathers Profiler
A wrapper around
feathers-profiler
making profiling logs slightly more human readable.
Installation
- Install
npm install colorful-feathers-profiler
- Add the profiler to your Feathers app:
import Feathers from '@feathersjs/feathers';
import FeathersProfiler from 'colorful-feathers-profiler';
const App = Feathers();
App.configure(FeathersProfiler({
enabled: true, // Use to turn off the profiler in environments where it doesn't make sense.
logger: console, // (optional) specify to use your own logger interface.
logStyle: 'object' // (optional) will log metadata objects instead of plaintext messages to the console.
// Intended to be plugged into Winson.
}))
- Enjoy!
License
This repository is licensed under the ISC license.
Copyright (c) 2020, Jørgen Vatle.