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.

Turn Off Console Logging

See original GitHub issue

How do I turn off all the output??

lient > service.offline Client#641f10ab-4061-4628-aa04-f1ad437f1d33
3|app    | Client > service.offline Client#8a003c0e-4801-4988-ad49-0ee6866d65d0
2|app    | Client > service.online Client#066dab79-8038-4dfd-ba71-72e7c74f0819
2|app    | Client > service.offline Geo Service#a1eee56c-3c78-4b77-9ebf-fd8e75b404e5 on 8000
0|app    | Client > service.online Client#4ef15e17-0ed7-4cb3-8fe3-ddfd7be62455
4|app    | Client > service.offline Client#4ef15e17-0ed7-4cb3-8fe3-ddfd7be62455
0|app    | Client > service.online Client#8a003c0e-4801-4988-ad49-0ee6866d65d0
1|app    | Client > service.online Client#641f10ab-4061-4628-aa04-f1ad437f1d33
1|app    | Client > service.offline Client#8a003c0e-4801-4988-ad49-0ee6866d65d0
1|app    | Client > service.offline Client#8df68651-4b7c-44a1-bc07-04110ce53016
2|app    | Client > service.online Client#debafd6c-28e4-4979-8a9f-676587b88a03

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
dasherswcommented, Dec 23, 2018

Discovery options go as the second parameter. In this case you can do;

geoService = new cote.Responder({ name: 'Geo Service' }, { log: false })
1reaction
knoxcardcommented, Dec 23, 2018

Perfect! working now… That code must be applied to both the Responder and Requester.

Responder

cote = require('cote'),
geoService = new cote.Responder({
	name: 'Geo Service'
}, {
	log: false,
	statusLogsEnabled: false
})

Requester

  app.geo_client = new app.cote.Requester({
    name: 'Client'
  }, {
    log: false,
    statusLogsEnabled: false
  })
Read more comments on GitHub >

github_iconTop Results From Across the Web

logging - how to stop console logging - Cisco Community
I have turned on logging. I set up a syslog server. But log messages stop me from doing anything on the console. How...
Read more >
How to quickly and conveniently disable all console.log ...
How to use the above 'logger'? In your ready event, call logger.disableLogger so that console messages are not logged. Add calls to logger.enableLogger...
Read more >
Disable console logging « ipSpace.net blog
To stop the console logging, use the no logging console global configuration command (highly recommended for routers that are not usually ...
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 >
Stop Console.Logging! This is How to Use Chrome to Debug ...
If you console.log() when you debug, you're doing it wrong. There's an easier way and it's right in t. ... Click Deactivate breakpoints....
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