Beispiel #1
0
        static void Main(string[] args)
        {
            Program program = new Program();
            if (!program.ParseCmdLine(args))
            {
                program.PrintHelp();
                return;
            }

            try
            {
                bool simpleMode = String.IsNullOrEmpty(program.Mode) || "0" == program.Mode;
                LogParser logParser = new LogParser(program.InputFile, program.OutputFile, simpleMode);
                logParser.Process();
            }
            catch (Exception eh)
            {
                Console.WriteLine(eh.Message);
            }
        }