Example #1
0
        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);
        }
Example #2
0
        private void LogLooseFileAnalysisLevel()
        {
            var analyzer = _analyzer;

            if (analyzer != null)
            {
                var val = analyzer.AnalysisLevel;
                _logger.LogEvent(NodejsToolsLogEvent.AnalysisLevel, (int)val);
            }
        }