webcore-it / nuxt-log Goto Github PK
View Code? Open in Web Editor NEWNuxt module for vuejs-logger
License: MIT License
Nuxt module for vuejs-logger
License: MIT License
I was looking for a nuxt logger and came across this and had high hopes. I added everything to the nuxt.config as described, but for what ever reason I keep getting 'Cannot read property 'debug' of undefined'
Ive tried using this in middleware using
export default function({store, app, redirect }) {
if(notAuthenticated) {
app.$log.error('User is not authenticated!')
redirect('/auth')
}
}
I've tried using this in the vuex store using
this.$log.debug('checking authentication')
Ive tried using this in a plugin using
import Vue from 'vue'
Vue.$log.debug('Setting theme to be...')
Nothing seems to work and it keeps acting as if its not mounted. Id really like to use this. What can i do to get this to work?
Hello
I have tried to use nuxt log on my typescript nuxt project but it seem not work:
this.$log
doest not exist on my page.
i have add vuejs-logger in tsconfig
"types": [
"@types/node",
"@nuxt/types",
"@nuxtjs/axios",
"@nuxt/vue-app",
"@types/jest",
"nuxt-i18n",
"cookie-universal-nuxt/types",
"vue-recaptcha/types",
"vuejs-logger"
]
Do you have an idea ?
Thanks :)
Best regards
Latest version is: 1.5.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.