Remove unnecessary console logs
See original GitHub issueMicroModal v0.1.1: ❗Please specify at least one 'micromodal-trigger' data attribute. index.js:118
16:21:15.992 MicroModal v0.1.1: Example: <a href="#" data-micromodal-trigger="my-modal"></a>
I was curious if we could remove this from hitting logs every time there’s a page without a modal on it?
If not, can we get a setting of some sort to set logging
to false
?
Thanks!
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Remove all console.log() from your project in less than a minute
Step 1. Open your project in VS Code ( Since we are using Regex, It is easier to use it in VS Code...
Read more >How to quickly and conveniently disable all console.log ...
Redefine the console.log function in your script. console.log = function() {}. That's it, no more messages to console. EDIT: Expanding on Cide's idea....
Read more >Ways to Remove Those Pesky console.log Statements
The lowest tech solution is to go through your code-base and manually remove all instances of console statements. This includes variations such ...
Read more >How to remove console log from your JavaScript files ...
You can edit this list: log|debug to remove the console method you want to remove. For example,if you want to remove console log,...
Read more >How to Disable Console Logging in Spring Boot - Baeldung
2. How to Disable the Console Output for Logback · logging.file=baeldung-disabled-console.log · logging.pattern.console= · logging.level.root=OFF
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 Free
Top 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
Perfect. Thanks a lot guys.
Hi @Log1x ,
You might have noticed that we have added support for
debugMode
. Now, you can turn on logging by simply adding one option toinit
.