Exemple #1
0
        private IDataSourceAnalyser CreateAnalyser(LogAnalyserFactoryId factoryId, ILogAnalyserConfiguration configuration)
        {
            try
            {
                if (factoryId != LogAnalyserFactoryId.Empty)
                {
                    return(_analyser.Add(factoryId, configuration));
                }

                Log.DebugFormat("Widget '{0}' doesn't specify a log analyser, none will created", factoryId);
                return(new NoAnalyser());
            }
            catch (Exception e)
            {
                Log.ErrorFormat("Caught unexpected exception while creating log analyser for widget '{0}': {1}", factoryId, e);
                return(new NoAnalyser(factoryId));
            }
        }
 public void Add(ILogFile logFile)
 {
     _analyser.Add(logFile);
 }