Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/noudadrichem/vue-bunyan-logger
🌈 A vue plugin that extends 'browser-bunyan'. Pretty logs in your browser console.
https://github.com/noudadrichem/vue-bunyan-logger
bunyan bunyan-logger logging nuxtjs vue
Last synced: 3 months ago
JSON representation
🌈 A vue plugin that extends 'browser-bunyan'. Pretty logs in your browser console.
- Host: GitHub
- URL: https://github.com/noudadrichem/vue-bunyan-logger
- Owner: noudadrichem
- Created: 2018-02-04T21:31:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T13:57:42.000Z (over 6 years ago)
- Last Synced: 2024-10-01T07:11:03.706Z (3 months ago)
- Topics: bunyan, bunyan-logger, logging, nuxtjs, vue
- Language: JavaScript
- Size: 17.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bunyan logger for VueJS
> This is just a vue plugin, core comes from bunyan & browser bunyan
### Install:
```bash
npm install vue-bunyan-logger@latest
```### How to use
```javascript
var Vue = require('vue')
var logger = require('vue-bunyan-logger')Vue.use(logger, { name: 'my-logger' }) // bind the plugin and include the logger name
```
```javascript
import Vue from 'vue'
import logger from 'vue-bunyan-logger'Vue.use(logger)
```
### Current logging options
```javascript
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.