0.2.0 • Published 8 years ago

@mycure/vu-logger v0.2.0

Weekly downloads
1
License
ISC
Repository
-
Last release
8 years ago

js-semistandard-style

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 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
}
0.2.0

8 years ago

0.1.0

8 years ago