Comments (6)
from js-logger.
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.
from js-logger.
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:
-
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 -
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.
from js-logger.
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)
- setLevel(String) HOT 2
- Request for giving access to time variable in Logger.timeEnd() HOT 1
- Formatting example breaks console substition HOT 5
- Please packed a esm version, standalone file. HOT 1
- How to remove stacktrace from trace logs? HOT 1
- Uncaught TypeError: Cannot read properties of undefined (reading 'Logger')
- export ILogger interface HOT 2
- Logging into plain text files HOT 1
- Debug Level Not Showing Up HOT 1
- Migrate away from gulp HOT 1
- Request for tables HOT 1
- No DEMO link in readme HOT 3
- npm package 1.4.1 has different code from github HOT 1
- The 1.5.0 version does not work with typescript 3.1.3 (EDIT 1.4.1 works) HOT 5
- Add missing TRACE debug level in ts definitions
- Request for api to set log-level of the Profile calls HOT 1
- When logging the line number comes from the logger instead the file where the logger is used HOT 1
- How do I extend the logger? HOT 1
- yarn? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-logger.