logiod

0.0.1 • Public • Published

logoid

Import

import {Logoid, LogoidOption, BroadcastRestApiOption,
     BroadcastIndexedDbOption, LogLevel, HttpRequest} from './index';

Install Logoid

const log = new Logoid();
log.installBroadcasts({
    broadCastRestApi: {
        httpRequest: {
            url: 'http://localhost:4200/api',
            method: 'POST'
        },
        watch: [LogLevel.ERROR]
    },
    broadcastIndexedDb: {
        watch: [LogLevel.INFO, LogLevel.ERROR]
    }
})

Console Log

log.log('welcome to logoid');
try{
    log.error('error message', new Error('custom error'));
} catch(e){
    //
}

Readme

Keywords

Package Sidebar

Install

npm i logiod

Weekly Downloads

1

Version

0.0.1

License

ISC

Unpacked Size

12.7 kB

Total Files

21

Last publish

Collaborators

  • iamsripad