1.0.4 • Published 8 years ago

fary-client-log v1.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

fary-client-log

Usage

For common use:

import log from 'fary-client-log'

const testLogger = log('namespace')

testLogger.log('log'/* and other ...anything */)
testLogger.warn('warn'/* and other ...anything */)
testLogger.error('error'/* and other ...anything */)
// the namespace in the console result will be colorful

For Vue component use:

import Vue from 'vue'
import { vueLogger } from 'fary-client-log'

// It will add `log`, `warn`, `error` three methods to Vue prototype
Vue.use(vueLogger)

// Then in any Vue component instance:
this.log('log'/* and other ...anything */)
this.warn('warn'/* and other ...anything */)
this.error('error'/* and other ...anything */)
// the component name(if found) in the console result will be colorful
1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.1

8 years ago