@amaui/log
TypeScript icon, indicating that this package has built-in type declarations

1.0.22 • Public • Published

amaui logo

amaui Log

Log utils, very readable and clean logs


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

Very simple code     Modern code     Junior friendly     Typescript     Made with 💛


Getting started

Add

yarn add @amaui/log

Use

  import AmauiLog from '@amaui/log';

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

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

Package Sidebar

Install

npm i @amaui/log

Weekly Downloads

160

Version

1.0.22

License

MIT

Unpacked Size

145 kB

Total Files

11

Last publish

Collaborators

  • lazareric