Coder Social home page Coder Social logo

nuxt-log's People

Contributors

webcore-it avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

upfit

nuxt-log's Issues

Not mounting properly?

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?

How use nuxt-log with typescript ?

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.