1.0.1 • Published 7 months ago

@onesy/log v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Getting started

Add

yarn add @onesy/log

Use

  import OnesyLog from '@onesy/log';

  // Make a new log instance
  // with an optional options value
  const onesyLog = new OnesyLog({
    arguments: {
      pre: [
        'Mongo',
      ],
    },
  });

  // Log any array of values
  onesyLog.info(`Collection: A`, `Response: 40ms`);

  // Output

    // 04-04-2014 04:04:14.141 (info):

    // Mongo
    // Collection: A
    // Response: 40ms

Dev

Install

yarn

Test

yarn test

Prod

Build

yarn build