@mycure/vu-logger
v0.2.0
Published
Vue Project Logger
Downloads
3
Readme
MYCURE Vue Logger module
Installation and Usage
$ yarn add @mycure/vu-logger
- use as a vue plugin
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
andVue.prototyp.$mcLogger
which is anLoggerService
- add a
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
}