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.

[Documentation] How to set log level in v1

See original GitHub issue

I have an issue with log level settings. I use to set it like this:

io.set('log level', 1);

But now the server is returning an warning:

Option log level is not valid. Please refer to the README.

When I referred to the README I could not find any reference of log level. I’ve also search in the source of socketio and could not find anything.

What is the equivalent of this option in v1?

Cheers, Maxime

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
CreativeWarlockcommented, May 5, 2015

“We’ll document this on the website under /docs/debugging”

This page can’t be found. For a newcomer to node.js this is bad documented. Still no idea what specific notation is expected after DEBUG= …

e.g.: DEBUG=socket.io node chat_ui.js SyntaxError: Unexpected identifier (pointing to node)

0reactions
phavorcommented, Mar 20, 2018

I’ve been having the same issue, I’ve tried implementing the corrective measures on this page and yet I get the optional warning message ultimately causing my app not to function. How do I really fix this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overriding Logging Levels — CrafterCMS 3.1.27 documentation
Temporarily Set Logging Levels · Click on mainMenu Main Menu · Click on Logging Levels · Find the class/package you want to change...
Read more >
Configure Log Levels | Tetrate Documentation
This document describes how to adjust log levels for the different components in TSB, including platform components, Envoy sidecars and ingress gateways at ......
Read more >
Logging Control — hyperledger-fabricdocs master ...
The default logging level for the shim is LogDebug . Below is a simple example of how a chaincode might create a private...
Read more >
loglevel - npm
Log things at a given level (trace/debug/info/warn/error) to the console object (as seen in all modern browsers & node. · Filter logging by...
Read more >
Set Log Levels | Mendix Documentation
Each application has a log to which it writes log messages to monitor the health of the running application. Log levels are used...
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