@amaui/log

Log utils, very readable and clean logs

Usage no npm install needed!

<script type="module">
  import amauiLog from 'https://cdn.skypack.dev/@amaui/log';
</script>

README


AMAUI Log

Log utils, very readable and clean logs


MIT license     Production ready     5.8kb gzipped     100% test cov     Browser and Nodejs

Very simple code     Modern code     Junior friendly     Typescript     Made with :yellow_heart:


Getting started

Add

  // yarn
  yarn add @amaui/log

  // npm
  npm install @amaui/log

Use

  import AmauiLog from '@amaui/log';

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

  // Log any array of values
  amauiSub.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

Docs

Might be soon...