logger4

Logger for NodeJS

Usage no npm install needed!

<script type="module">
  import logger4 from 'https://cdn.skypack.dev/logger4';
</script>

README

logger4

Install via npm

npm i logger4

Example usage

// Logger.ts
import Logger4 from 'logger4';
import * as path from 'path';

export let Logger = new Logger4({
    printEnabled: true,
    path: path.join(process.cwd(), 'log'),
    directorySizeLimitMB: 3000
});

// script.ts
Logger.info('Hello World!');
Logger.info('{[0]} {[1]}', 'p1', 'p2');