wbb-logger
v1.1.0
Published
A wrapper around basic-logger
Downloads
181
Readme
#WBB Logger
Installation
npm install wbb-logger
Usage
import Logger from 'wbb-logger';
const logger = new Logger('example-file.ts');
logger.info('info');
logger.debug('debug');
logger.warn('warning');
logger.error(new Error('example'));
logger.trace('trace');
Sentry Integration Usage
import {WBBLoggerSentryIntegration} from 'wbb-logger';
import * as Sentry from '@sentry/node';
Sentry.init({
dsn: '',
integrations: [
new WBBLoggerSentryIntegration(), // <--
],
});
How to create a release
1. Commit all changes
Run $ git status
and make sure you have no uncommitted changes
2. Run Build
This command builds the source into the folder dist
$ npm run build
3. Update version number
update version number using semantic versioning release types (patch, major, or minor) e.g.
$ npm version patch
4. Login to npm
$ npm login
5. Publish npm
$ npm publish
6. Create a new branch dist
$ git checkout -b dist
7. Push dist to origin
$ git push origin dist
8. Create a pull request
Create a pull request to merge origin/dist
--> upstream/master
Use version number as pull request title.
9. Push tags to upstream
$ git push upstream --tags