microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
321 stars 138 forks source link

Display console kogs #1291

Closed olawalejuwonm closed 2 months ago

olawalejuwonm commented 4 months ago

Can this insight display console.logs from the application?

JacksonWeber commented 3 months ago

@olawalejuwonm Yes, absolutely. You can use the .setAutoCollectConsole(true, true) configuration option to receive logs telemetry from your console.log statements. Note that by default, the SDK will only collect winston and bunyan third-party logs, so make sure to set the configuration option mentioned above.

olawalejuwonm commented 3 months ago

Thank you. Is this an open source tool? Or I need to pay to use it?

On Wed, Mar 6, 2024 at 2:10 AM Jackson Weber @.***> wrote:

@olawalejuwonm https://github.com/olawalejuwonm Yes, absolutely. You can use the .setAutoCollectConsole(true, true) configuration option to receive logs telemetry from your console.log statements. Note that by default, the SDK will only collect winston and bunyan third-party logs, so make sure to set the configuration option mentioned above.

— Reply to this email directly, view it on GitHub https://github.com/microsoft/ApplicationInsights-node.js/issues/1291#issuecomment-1979901050, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMSQ2BDL6GTSAMRILNWCWZ3YWZUHFAVCNFSM6AAAAABD54GRKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZZHEYDCMBVGA . You are receiving this because you were mentioned.Message ID: @.***>

JacksonWeber commented 3 months ago

@olawalejuwonm I invite you to read our software license for the SDK here: https://github.com/microsoft/ApplicationInsights-node.js/blob/develop/LICENSE.

If you're looking to collect output telemetry from the SDK in Azure and want to determine pricing structure, that information is available here: https://azure.microsoft.com/en-us/pricing/details/monitor/.