colorful-feathers-profiler
TypeScript icon, indicating that this package has built-in type declarations

2.3.2 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i colorful-feathers-profiler

Weekly Downloads

429

Version

2.3.2

License

ISC

Unpacked Size

24.8 kB

Total Files

18

Last publish

Collaborators

  • jorgenvatle