private void InitializeLogging() { _logger = new NodejsToolsLogger(ComponentModel.GetExtensions <INodejsToolsLogger>().ToArray()); // log interesting stats on startup _logger.LogEvent(NodejsToolsLogEvent.SurveyNewsFrequency, GeneralOptionsPage.SurveyNewsCheck); _logger.LogEvent(NodejsToolsLogEvent.AnalysisLevel, IntellisenseOptionsPage.AnalysisLevel); }
private void LogLooseFileAnalysisLevel() { var analyzer = _analyzer; if (analyzer != null) { var val = analyzer.AnalysisLevel; _logger.LogEvent(NodejsToolsLogEvent.AnalysisLevel, (int)val); } }