protected LogLevelResolver ReadLogPattern(XmlScanner scanner)
 {
     return LogLevelResolvers.LogMatches(
         LogMatchers.NameMatchesPattern(
             scanner.Text().Trim()),
         scanner.GetAttributeAsEnum<LogLevel>(
             typeof(LogLevel),
             "level",
             true));
 }