@mycure/vu-logger
0.2.0 • Public • Published
MYCURE Vue Logger module
Installation and Usage
$ yarn add @mycure/vu-logger
import Vue from 'vue';
import McLogger from '@mycure/vu-logger';
Vue.use(McLogger)
- above will do the ff:
- describe side effects here
- sample side effects:
- attach a global method/attribute
- attach an instance method/attribute
- add components
// create sample use here
- above will do the ff:
- add a
Vue.$mcLogger
and Vue.prototyp.$mcLogger
which is an LoggerService
Classes
LoggerService
class LoggerService {
constructor (opts: {
moduleName: string,
printToConsole?: boolean = false
}): AuthService;
log(...args: string []): void
warn(...args: string []): void
error(...args: string []): void
debug(...args: string []): void
verbose(...args: string []): void
info(...args: string []): void
}
Package Sidebar
Install
Weekly Downloads