UNPKG

@busmarket/bm-logs-js

Version:

Standard of journal for internal services

37 lines (29 loc) 628 B
![](https://login.bm.parts/static/img/bm_logo_.svg) # JS client for collecting logs `` STANDARD OF JOURNALS FOR INTERNAL SERVICES - BM Parts `` ### Installation ``` npm i @busmarket/bm-logs-js ``` ### Overview Using JavaScript: ```js const BmLogs = require('@busmarket/bm-logs-js'); ``` Using TypeScript: ```typescript import {BmLogs} from '@busmarket/bm-logs-js'; ``` ```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` }) ```