Giter Site home page Giter Site logo

Comments (6)

jonnyreeves avatar jonnyreeves commented on July 22, 2024

from js-logger.

franck102 avatar franck102 commented on July 22, 2024

Ooops, good question, console.debug() is being invoked with the correct message, which made me realise I simply needed to adjust the displayed levels in Chrome dev tools UI :)

Sorry for the false alarm :)

from js-logger.

jonnyreeves avatar jonnyreeves commented on July 22, 2024

from js-logger.

franck102 avatar franck102 commented on July 22, 2024

No worries, perhaps consider raising a pull request to update the readme with this advice for future explorers?

On Wed, 15 Jun 2022, 19:19 franck102, @.> wrote: Ooops, good question, console.debug() is being invoked with the correct message, which made me realise I simply needed to adjust the displayed levels in Chrome dev tools UI :) Sorry for the false alarm :) — Reply to this email directly, view it on GitHub <#110 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABQ36JN2SAYBU5FM7F7YPDVPINCJANCNFSM5Y36TMSQ . You are receiving this because you commented.Message ID: @.>

I can, the main confusion though came from me initially trying to use npm i js-vue-logger in my Vue (non typescript) project. I ended up uninstalling and using npm i js-logger instead.
I found the library on this page: https://openbase.com/js/js-vue-logger... and I'm still not sure what the difference is, if any, between the two packages. After that I assumed I hadn't properly installed or I wasn't properly using the library. Are those instructions correct for a Vue 3 user:

  1. npm install js-logger
    Do not install js-vue-logger, it is ...?
    You can use the js-logger package both for typescript-enabled and for non-typescript projects

  2. In main.js or in App.vue:

import logger from 'js-logger';
logger.useDefaults();
logger.setLevel(Logger.WARN|INFO|DEBUG...);
logger.info('Logging level set to ' + JSON.stringify(Logger.getLevel()));

from js-logger.

jonnyreeves avatar jonnyreeves commented on July 22, 2024

from js-logger.

franck102 avatar franck102 commented on July 22, 2024

Argh, I'll blame crappy UI on openbase.com: on Chrome/MacOS if you start reading the description for js-logger then scroll slightly back up a small band shows up at the top with the essential info for js-vue-logger - as being the first / previous item in the list I assume.
Once I liked the description I took the npm command from that :)

from js-logger.

Related Issues (20)

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.