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.

Bunyan logger cannot send logs back to app insights

See original GitHub issue

Hello. I’m using bunyan logger in a project and the documentation said that: Note that by default setAutoCollectConsole is configured to exclude calls to console.log (and other console methods). By default, only calls to supported third-party loggers (e.g. winston, bunyan) will be collected. You can change this behavior to include calls to console methods by using setAutoCollectConsole(true, true). But I bunyan logger cannot sent log back to app insights. Do you have any documentation about that? Thank you so much.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
diwakersuryacommented, Sep 1, 2020

Also check the version of the dependency you are trying to integrate. See more here https://github.com/Microsoft/node-diagnostic-channel/blob/master/src/diagnostic-channel-publishers/README.md

3reactions
MichaelTsengLZcommented, Oct 5, 2017

It turns out that the sequence of require app insights and bunyan matters.

var appInsights = require('applicationinsights');
var bunyan = require('bunyan');

This solve my problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bunyan logger cannot send logs back to app insights #338
Hello. I'm using bunyan logger in a project and the documentation said that: Note that by default setAutoCollectConsole is configured to ...
Read more >
Transfer logs from Android to App Center or Application Insights
In my Node. js backend logs from Bunyan even are collected automatically by Application Insights by means of a monkey patch applied to...
Read more >
Application Insights SDK for Node.js part 4 : Out of box ...
js logging library. I installed bunyan and added logger and log information in "ordersfail" endpoint. var bunyan = require ...
Read more >
Monitor your Node.js services and apps with Application Insights
Monitor performance and diagnose problems in Node.js services with Application Insights.
Read more >
Cloud Logging for Bunyan - Node.js client library
Create a Bunyan logger that streams to Cloud Logging ... Any application logs emitted on behalf of a specific request will be shown...
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