1.1.7 • Published 3 years ago

@busmarket/bm-logs-js v1.1.7

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

npm.io

JS client for collecting logs

STANDARD OF JOURNALS FOR INTERNAL SERVICES - BM Parts

Installation

npm i @busmarket/bm-logs-js

Overview

Using JavaScript:

const BmLogs = require('@busmarket/bm-logs-js');

Using TypeScript:

import {BmLogs} from '@busmarket/bm-logs-js';
const internalLogger = new BmLogs({filename: `log__${Date.now()}`});
internalLogger.log({
    severity: 'error',
    type: 'Service',
    service: 'Name service',
    result: 'Error',
    message: `Error message`,
    username: `Username`
})