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
npm login
- Increment version in
package.json
npm publish