Navigation Menu

Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Remove optional leading and trailing spaces around LEVEL and LOGGER d…
Browse files Browse the repository at this point in the history
…efinitions

Supports parsing of log entries where the start of the entry is a right-aligned level

git-svn-id: https://svn.apache.org/repos/asf/logging/chainsaw/trunk@1448515 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
scottdeboy committed Feb 21, 2013
1 parent b1d2e00 commit 329e513
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -157,7 +157,8 @@ public class LogFilePatternReceiver extends Receiver {
private static final String REGEXP_DEFAULT_WILDCARD = ".*?";
private static final String REGEXP_GREEDY_WILDCARD = ".*";
private static final String PATTERN_WILDCARD = "*";
private static final String NOSPACE_GROUP = "(\\S*\\s*?)";
//pull in optional leading and trailing spaces
private static final String NOSPACE_GROUP = "(\\s*?\\S*?\\s*?)";
private static final String DEFAULT_GROUP = "(" + REGEXP_DEFAULT_WILDCARD + ")";
private static final String GREEDY_GROUP = "(" + REGEXP_GREEDY_WILDCARD + ")";
private static final String MULTIPLE_SPACES_REGEXP = "[ ]+";
Expand Down

0 comments on commit 329e513

Please sign in to comment.