@rpidanny/quill
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

Core

Core Quill Node.js logger.

Installation

To use Quill, simply install the package from NPM using the following command:

npm i --save @rpidanny/quill

Usage

import Quill from '@rpidanny/quill';
const logger = new Quill({ service: 'my-awesome-service' });

logger.info('hey there');

Hooks

Quill can be effortlessly customized with an array of log transformation functions, also known as hooks. Take a look at the following example, where every log message receives an enchanting prefix.

import Quill from '@rpidanny/quill';

const logger = new Quill({
  service: 'my-awesome-service',
  hooks: [
    (log) => ({
      ...log,
      message: `PREFIX: ${log.message}`,
    }),
  ],
});

Readme

Keywords

none

Package Sidebar

Install

npm i @rpidanny/quill

Weekly Downloads

1

Version

1.4.0

License

none

Unpacked Size

15.7 kB

Total Files

15

Last publish

Collaborators

  • mabhishek