Logger don't work.
See original GitHub issueDescribe the bug In react-editor, set log-leverl to debug, the console of browser display nothing.
To Reproduce
- In react-editor packages: edit src/website/Root.jsx
- Add:
import { setLogLevel, logLevels } from '@jafar/form';
setLogLevel(logLevels.DEBUG);
- In browser: console window display nothing
Expected behavior In other packages except ‘form’, logger should also work.
Additional context I think this problem come from the configure of package dependencies. React-editor or react-form etc, configure ‘@jafar/form’ as ‘dependencies’, not ‘peerDependencies’. The result is there are two ‘@jafar/form’ in builded bundle.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
logging - Python Logger not working - Stack Overflow
The problem is that the logger's level is still set to the default. So the logger discards the message before it even gets...
Read more >[2.7.0 java] logger.info doesn't work · Issue #9087 - GitHub
You need set the log level for the logger you are using. Have a look at your conf/logback.xml config. ... This means by...
Read more >Logging HOWTO — Python 3.11.1 documentation
Logger objects have a threefold job. First, they expose several methods to application code so that applications can log messages at runtime. Second,...
Read more >The Ultimate Guide to Logging in Python - Rollbar
Logging in Python allows you to track, tag, and assign severity levels to events that happen when an application runs.
Read more >Python Logging: A Stroll Through the Source Code
The Logger and Handler classes are both central to how logging works, and they interact with each other frequently. A Logger , a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@galhavivi done. According to your instructions, I have seen log infos. 😃 Just like you say - the log level “verbose” on chrome, not “debug” or “info”.
BTW: I try to analyze bundle using ‘source-map-explorer’, but it only analyze react-editor package, not show other package’s (form, react-component etc) infos deeply.
@WangLarry about logs, ill add to the docs where each logs level can be found, especially debug messages. Thanks for your great feedbacks 😃