Azure Web App: Activate application logging for more than 12 hours

Is it possible to support application logging for more than 12 hours for Azure Web App?

I have a deployment with Node.js that runs randomly in database connectivity issues that I cannot track because they only happen every 2 or 3 days. For debugging reasons, I would like to have log output for these problems, but I have not found a way to do this? Has anyone found a solution for this?

+4
source share
2 answers

Yes it is possible.

, DIAGNOSTICS_TEXTTRACETURNOFFPERIOD () 12 * 60 * 60 * 1000, 12 .

.

+5

Application Insights. SDK Node.js. , , -, , -.

SDK:

npm install applicationinsights

app.js/server.js:

import appInsights = require("applicationinsights");
appInsights.setup("<instrumentation_key>").start();

: https://www.npmjs.com/package/applicationinsights

0

Source: https://habr.com/ru/post/1609074/


All Articles