public WhenCheckingCanParseMessage()
        {
            var extendedProperties = new FakeExtendedProperties
            {
                { "pattern", "ExactMatch" },
                { "options", "None" }
            };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
示例#2
0
        public WhenParsingNonGroupedMessage()
        {
            var extendedProperties = new FakeExtendedProperties
            {
                { "pattern", @"[^:]+: [A-Z]{5} \[[\d]\] - [\w]+ - .*" },
                { "options", "IgnoreCase" }
            };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
        public WhenParsingNonGroupedMessage()
        {
            var extendedProperties = new FakeExtendedProperties
                                         {
                                             { "pattern", @"[^:]+: [A-Z]{5} \[[\d]\] - [\w]+ - .*" },
                                             { "options", "IgnoreCase" }
                                         };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
        public WhenCheckingCanParseMessage()
        {
            var extendedProperties = new FakeExtendedProperties
                                         {
                                             { "pattern", "ExactMatch" },
                                             { "options", "None" }
                                         };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
        public WhenParsingGroupedMessage()
        {
            var extendedProperties = new FakeExtendedProperties
                                         {
                                             { "pattern", @"(?<logger>[^:]+): (?<level>[A-Z]+) \[(?<thread>[\d])\] - (?<username>[\w]+) - (?<message>(.*\r*\n*)*)" },
                                             { "options", "ExplicitCapture,IgnoreCase" }
                                         };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
        public WhenParsingGroupedMessage()
        {
            var extendedProperties = new FakeExtendedProperties
            {
                { "pattern", @"(?<logger>[^:]+): (?<level>[A-Z]+) \[(?<thread>[\d])\] - (?<username>[\w]+) - (?<message>(.*\r*\n*)*)" },
                { "options", "ExplicitCapture,IgnoreCase" }
            };

            messageParser = new RegexParser(processRetriever.Object, extendedProperties);
        }
 public WhenParsingFullMessage()
 {
     messageParser = new Log4JParser(processRetriever.Object, new FakeExtendedProperties());
 }
 public WhenCheckingCanParseMessage()
 {
     messageParser = new DefaultParser(processRetriever.Object, new FakeExtendedProperties());
 }
示例#9
0
 public WhenParsingMessage()
 {
     messageParser = new DefaultParser(processRetriever.Object, new FakeExtendedProperties());
 }
 public WhenParsingFullMessage()
 {
     messageParser = new Log4NetParser(processRetriever.Object, new FakeExtendedProperties());
 }
示例#11
0
 public WhenCheckingCanParseMessage()
 {
     messageParser = new Log4JParser(processRetriever.Object, new FakeExtendedProperties());
 }