0.0.7 • Published 6 years ago

vue-bunyan-logger v0.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Bunyan logger for VueJS

This is just a vue plugin, core comes from bunyan & browser bunyan

Install:

npm install vue-bunyan-logger@latest

How to use

var Vue = require('vue')
var logger = require('vue-bunyan-logger')

Vue.use(logger)
import Vue from 'vue'
import logger from 'vue-bunyan-logger'

Vue.use(logger)

Current logging options

this.$log.info('this logs an info message')

this.$log.warn('this logs a warning message')

this.$log.fatal('this logs a fatal message')

this.$log.error('this logs an error message')

this.$log.error({ obj: {
  message: 'this logs an object.'
}})

Todo

  • options to pass to bunyan.
0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago