/colorful-feathers-profiler

🧪 A more colorful Feathers service logger. Credit to feathers-profiler

Primary LanguageTypeScript

Colorful Feathers Profiler

A wrapper around feathers-profiler making profiling logs slightly more human readable.

Installation

  1. Install
npm install colorful-feathers-profiler
  1. 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.
}))
  1. Enjoy!

Console Preview

License

This repository is licensed under the ISC license.

Copyright (c) 2020, Jørgen Vatle.