1.0.2 • Published 7 years ago

vue-mobile-log v1.0.2

Weekly downloads
5
License
MIT
Repository
-
Last release
7 years ago

Screenshot

npm.io

Requirements

  • vue@^2.3.0

Docs

  • 中文文档(建设中)
  • English(working)

Quick Start

1.in project path:

npm install vue-mobile-log

2.import:

import Vlog from 'vue-mobile-log'
Vue.use(Vlog);
//or
Vue.use(Vlog,options)

options:

{
    env:'development',//when production does not open the console
    level:'debug' //debug,info,warn,error
}

3.print log:

global call:
Vue.$vlog.debug(logMsg);
Vue.$vlog.info(logMsg);
Vue.$vlog.warn(logMsg);
Vue.$vlog.error(logMsg);
 
in component:
this.$vlog.debug(logMsg);
this.$vlog.info(logMsg);
this.$vlog.warn(logMsg);
this.$vlog.error(logMsg);

License

MIT

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago