1.6.0 • Published 1 year ago

@rpidanny/quill v1.6.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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}`,
    }),
  ],
});
1.6.0

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago