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.

I 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:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nobleachcommented, Jan 30, 2019

Cool! Thanks for doing that!

0reactions
LoicPoullaincommented, Jan 30, 2019

Oh nice, I didn’t know Winston. I added more documentation on the Logging & Debugging page so that new comers have an example.

Read more comments on GitHub >

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

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