Debug to console
See original GitHub issueI see a way to decorate a route in a controller with a @Log
decorator. Is there a way to do simple log statements like
Log(`UserId is: ${userId}`);
Typically these would be like:
logger.debug('foo');
in many other frameworks.
My reasoning is that I often have VERY thorough logs at the debug-level (and during development). But very sparse info-level.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
console.debug() - Web APIs - MDN Web Docs
The console.debug() method outputs a message to the web console at the "debug" log level. The message is only displayed to the user...
Read more >Debugging in Visual Studio Code
To open the Debug Console, use the Debug Console action at the top of the Debug pane or use the View: Debug Console...
Read more >JavaScript Debugging - W3Schools
Normally, you activate debugging in your browser with F12, and select "Console" in the debugger menu. Otherwise follow these steps: Chrome. Open the...
Read more >Using the Debug Console - IBM
The Debug Console allows you to issue commands to the debug engine. It also allows you to view output from the engine and...
Read more >Difference between console.log() and console.debug()?
Technically console.log console.debug and console.info are identical However the way they display the data is little different. console.debug is not visible ...
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
Cool! Thanks for doing that!
Oh nice, I didn’t know Winston. I added more documentation on the Logging & Debugging page so that new comers have an example.