tui-vue-logger
Console Types: 'info', 'log', 'warn', 'error', 'debug'
Install
npm install tui-vue-logger -D
or
Usage
Vue // custom perfixVue el: '#app' { this }
or
Open Console
If frist params is this
, will output file
& route
at the end of logger
this// [TEST::DEBUG] 1 2 3 [FILE:src/views/home/home.vue] [ROUTE:home]this// [TEST::INFO] 1 2 3this// [TEST::ERROR] 3this// [TEST::WARN] 4this// [TEST::LOG] 5
Options
Name | Desc | Type | Default |
---|---|---|---|
prefix | prefix | String | logger |