0.1.4 • Published 7 years ago
ui-logger v0.1.4
Install
npm i -S ui-logger
Use agent
import {UILogger} from 'ui-logger';
// enviroment
process.env.PANEL = 'client-ui';
process.env.API_HOST = 'http://localhost:8081/';
// setting
const userId = 10001;
const locale = 'ru';
const workerPath = '/ui-logger-worker.js';
// init
const logger = new UILogger(userId, locale, workerPath);