question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logger don't work.

See original GitHub issue

Describe the bug In react-editor, set log-leverl to debug, the console of browser display nothing.

To Reproduce

  1. In react-editor packages: edit src/website/Root.jsx
  2. Add:
import { setLogLevel, logLevels } from '@jafar/form';
setLogLevel(logLevels.DEBUG);
  1. 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:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
WangLarrycommented, Jul 12, 2020

@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.

0reactions
galhavivicommented, Jul 12, 2020

@WangLarry about logs, ill add to the docs where each logs level can be found, especially debug messages. Thanks for your great feedbacks 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found