@mycure/vu-logger

0.2.0 • Public • Published

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
}

Readme

Keywords

Package Sidebar

Install

npm i @mycure/vu-logger

Weekly Downloads

0

Version

0.2.0

License

ISC

Last publish

Collaborators