wuhalog

Wuha logging library for Node applications.

Usage no npm install needed!

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

README

Wuha Log

Logging package for Node.js applications.

Usage

Before it can be used, the logger needs to be initialized. This is done by calling the initialize function, which can be done like so:

import { initialize as initializeLogger } from 'wuhalog'
const log = initializeLogger({
  level: 'info'
})

You should do this in the first file of your Node project. Once initialize, the logger can access as the default import:

import log from 'wuhalog'

The equivalent without import:

const log = require('wuhalog').initialize({
  level: 'info'
})

And later:

const log = require('wuhalog').default

Examples

Wuhalog is used in Manhattan (for ES2015 examples) and in Redirector (for TypeScript examples).

Publishing

  1. npm login
  2. Increment version in package.json
  3. npm publish