Add output channel for telemetry.log file (#58846)

* Add output channel for telemetry.log file

* Explain telemetry.log file in the first line
This commit is contained in:
Ramya Rao
2018-09-20 10:39:35 -07:00
committed by GitHub
parent 96033fee06
commit c0d1f91a8b
3 changed files with 14 additions and 1 deletions

View File

@@ -101,6 +101,8 @@ function main(server: Server, initData: ISharedProcessInitData, configuration: I
const environmentService = accessor.get(IEnvironmentService);
const { appRoot, extensionsPath, extensionDevelopmentLocationURI, isBuilt, installSourcePath } = environmentService;
const telemetryLogService = new FollowerLogService(logLevelClient, createSpdLogService('telemetry', initData.logLevel, environmentService.logsPath));
telemetryLogService.info('The below are logs for every telemetry event sent from VS Code once the log level is set to trace.');
telemetryLogService.info('===========================================================');
let appInsightsAppender: ITelemetryAppender = NullAppender;
if (product.aiConfig && product.aiConfig.asimovKey && isBuilt) {