@phaesynthe/phlog

A general purpose multi-level logger.

Usage no npm install needed!

<script type="module">
  import phaesynthePhlog from 'https://cdn.skypack.dev/@phaesynthe/phlog';
</script>

README

Phlog

The Phaesynthe log utility.

Getting Started

Examples

const Phlog = require('phlog');
const log = (new Phlog()).getRawLogger();

log.verbose('example method', 'message');

or

const Phlog = require('phlog');
const LogService = new Phlog();

const log = LogService.getModuleLogger('Route Handler', `${chalk.green(MESSAGE_PREFIX)}`);

log.verbose('message');