Ejemplo n.º 1
0
        public static LogInfoBase Parse(string logContent)
        {
            var logSource = DetermineLogSource(logContent);

            switch (logSource)
            {
            case LogSource.MsSql:
                return(LogParseStrategyMsSql.Parse(logContent));

            case LogSource.Ncsa:
                return(LogParseStrategyNcsa.Parse(logContent));

            case LogSource.Splunk:
                return(LogParseStrategySplunk.Parse(logContent));

            default:
                throw new LogSourceNotSupportedException("The Log Content provided is not an expected Log Source format");
            }
        }