[logback-dev] [qos-ch/logback-decoder] 13d9e1: Add parsers for %date, %level, and %msg

Tony Trinh tony19 at gmail.com
Mon Jul 22 04:37:42 CEST 2013


  Branch: refs/heads/master
  Home:   https://github.com/qos-ch/logback-decoder
  Commit: 13d9e1bb7f858b5c91af96299cb7af15ad6cef17
      https://github.com/qos-ch/logback-decoder/commit/13d9e1bb7f858b5c91af96299cb7af15ad6cef17
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/DateParser.java
    A src/main/java/ch/qos/logback/decoder/LevelParser.java
    A src/main/java/ch/qos/logback/decoder/MessageParser.java

  Log Message:
  -----------
  Add parsers for %date, %level, and %msg


  Commit: 4c2639ddaa55d9b0d6c29a0f90483052014beba6
      https://github.com/qos-ch/logback-decoder/commit/4c2639ddaa55d9b0d6c29a0f90483052014beba6
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java

  Log Message:
  -----------
  Add tests for decoding %date, %level, and %msg


  Commit: 0eda6b8cdc166d30be5866277cf1922d1d49e6c5
      https://github.com/qos-ch/logback-decoder/commit/0eda6b8cdc166d30be5866277cf1922d1d49e6c5
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: 41363d9e3193f338efe0ed8af1acefc3a6c9a5e9
      https://github.com/qos-ch/logback-decoder/commit/41363d9e3193f338efe0ed8af1acefc3a6c9a5e9
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: bfcc35708fc72fcf28cb3078792213e69dbf6cbf
      https://github.com/qos-ch/logback-decoder/commit/bfcc35708fc72fcf28cb3078792213e69dbf6cbf
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: c7461dfc8edcc822078f8095a268404623345701
      https://github.com/qos-ch/logback-decoder/commit/c7461dfc8edcc822078f8095a268404623345701
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: b152a04be361502a099fee4a1b8c0538bff595e3
      https://github.com/qos-ch/logback-decoder/commit/b152a04be361502a099fee4a1b8c0538bff595e3
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: bc957b98222b8ca2256951732c0327a51471b0ca
      https://github.com/qos-ch/logback-decoder/commit/bc957b98222b8ca2256951732c0327a51471b0ca
  Author: Ceki Gulcu <ceki at qos.ch>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M README.txt

  Log Message:
  -----------
  Update README.txt


  Commit: a74c6145d110e0e4d8809e519f9c2968a1673084
      https://github.com/qos-ch/logback-decoder/commit/a74c6145d110e0e4d8809e519f9c2968a1673084
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/core/pattern/parser2/PatternInfo.java
    M src/main/java/ch/qos/logback/core/pattern/parser2/PatternParser.java
    M src/main/java/ch/qos/logback/decoder/DateParser.java
    M src/test/java/ch/qos/logback/core/pattern/parser2/PatternParserTest.java
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java

  Log Message:
  -----------
  Rename "Conversion Modifier" to "Option"

"Option" text aligns with the logback manual. Plus, it's nice and
simple (easy to type).


  Commit: c89844d6378abafa0b67dd929084632825e061e5
      https://github.com/qos-ch/logback-decoder/commit/c89844d6378abafa0b67dd929084632825e061e5
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/core/pattern/parser2/PatternParser.java
    M src/test/java/ch/qos/logback/core/pattern/parser2/PatternParserTest.java
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java

  Log Message:
  -----------
  Fix parser for patterns w/multiple options (#1)

The pattern parser failed (returned invalid results) when trying to
parse layout patterns containing multiple conversion words that have
options. This was mainly due to greedy regex patterns for "group" and
"option"; and to incorrect post-match parsing.

This patch fixes the regex patterns and the post-match parsing. A unit
test was also added to test for this specific problem.


  Commit: 19f721d8917535850055d458b0ec6d7e657d0f05
      https://github.com/qos-ch/logback-decoder/commit/19f721d8917535850055d458b0ec6d7e657d0f05
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M pom.xml

  Log Message:
  -----------
  Update all dependency versions in POM


  Commit: e62dc9103744283b5372932bb0fa27d819acc4e6
      https://github.com/qos-ch/logback-decoder/commit/e62dc9103744283b5372932bb0fa27d819acc4e6
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/core/pattern/parser2/PatternParser.java
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    M src/test/java/ch/qos/logback/decoder/regex/RegexPatternsTest.java

  Log Message:
  -----------
  Resolve deprecated class refs for named-regexp


  Commit: df745f2c61e2eb5d6f410f95abccd7ff6296cb1b
      https://github.com/qos-ch/logback-decoder/commit/df745f2c61e2eb5d6f410f95abccd7ff6296cb1b
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M pom.xml

  Log Message:
  -----------
  Tweak pom settings

Bump versions for compiler and surefire. Tweak surefire settings and
redirect test output to file to minimize noise on command line.


  Commit: 99d97cd72ed26abb43af948253ee833f9507181e
      https://github.com/qos-ch/logback-decoder/commit/99d97cd72ed26abb43af948253ee833f9507181e
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    M src/main/java/ch/qos/logback/decoder/regex/PatternLayoutRegexUtil.java
    M src/main/java/ch/qos/logback/decoder/regex/RegexPatterns.java
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java
    M src/test/java/ch/qos/logback/decoder/regex/PatternLayoutRegexUtilTest.java
    M src/test/java/ch/qos/logback/decoder/regex/RegexPatternsTest.java

  Log Message:
  -----------
  Lazily match free-form fields; allow flexible spaces (#2)

The regex patterns were adjusted to use lazy/reluctant quantifiers
for properly matching free-form fields (including logger name).

Also, the parser is now flexible in whitespace parsing.


  Commit: edc2da87e2b3087a7fd12b8ff72cb9ff5aff0f1a
      https://github.com/qos-ch/logback-decoder/commit/edc2da87e2b3087a7fd12b8ff72cb9ff5aff0f1a
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A src/main/java/ch/qos/logback/core/pattern/parser2/DatePatternInfo.java
    M src/main/java/ch/qos/logback/core/pattern/parser2/PatternParser.java
    M src/main/java/ch/qos/logback/decoder/DateParser.java
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    A src/main/java/ch/qos/logback/decoder/ParserUtil.java
    A src/test/java/ch/qos/logback/decoder/DateDecoderTest.java
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java
    A src/test/java/ch/qos/logback/decoder/LevelDecoderTest.java
    A src/test/java/ch/qos/logback/decoder/LoggerNameDecoderTest.java

  Log Message:
  -----------
  Add time-zone support to date parser (#3)

The date parser can now handle the timezone option and commas
within the option (e.g., to isolate the date format from the
timezone option).

  %date{MM/dd/yyyy HH:MM:SS, Australia/Perth}

This also splits DecoderTest into individual test suites for %date,
%level, and %logger.


  Commit: c954a38d1a2abe740d6186103954e864ff3aa587
      https://github.com/qos-ch/logback-decoder/commit/c954a38d1a2abe740d6186103954e864ff3aa587
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M .gitignore

  Log Message:
  -----------
  Add bin/ to .gitignore


  Commit: 28f4826bc75fba36efad04130618ba89803ffdde
      https://github.com/qos-ch/logback-decoder/commit/28f4826bc75fba36efad04130618ba89803ffdde
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A .gitignore
    R .gitignore
    A LICENSE.txt
    R LICENSE.txt

  Log Message:
  -----------
  Fix chmod for .gitignore and LICENSE.txt


  Commit: e0d7908ce94d5b1e9d9ba0841f4c3be711a81041
      https://github.com/qos-ch/logback-decoder/commit/e0d7908ce94d5b1e9d9ba0841f4c3be711a81041
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/LevelParser.java
    M src/main/java/ch/qos/logback/decoder/MessageParser.java

  Log Message:
  -----------
  Remove public loggers

A couple loggers that were unnecessarily public (or unused) are now
private or removed.


  Commit: f1b0754bc56cbf8b4d360b0acc41970575fd9462
      https://github.com/qos-ch/logback-decoder/commit/f1b0754bc56cbf8b4d360b0acc41970575fd9462
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    R src/main/java/ch/qos/logback/decoder/AccessDecode.java

  Log Message:
  -----------
  Remove AccessDecode (empty class)

We'll add the class when it's ready to be implemented. In the meantime,
it doesn't make sense to keep empty classes around.


  Commit: 6837a5a911c4c73b2a160946ec4956214cbab783
      https://github.com/qos-ch/logback-decoder/commit/6837a5a911c4c73b2a160946ec4956214cbab783
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/core/pattern/parser2/PatternParserTest.java
    M src/test/java/ch/qos/logback/decoder/regex/PatternLayoutRegexUtilTest.java
    M src/test/java/ch/qos/logback/decoder/regex/RegexPatternsTest.java

  Log Message:
  -----------
  Remove "test" prefix from test names


  Commit: 07e452cd15b5d97fdefffbfa3dd420e45fab2be9
      https://github.com/qos-ch/logback-decoder/commit/07e452cd15b5d97fdefffbfa3dd420e45fab2be9
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    A src/main/java/ch/qos/logback/decoder/LoggerNameParser.java
    A src/main/java/ch/qos/logback/decoder/ThreadNameParser.java
    M src/test/java/ch/qos/logback/decoder/LoggerNameDecoderTest.java
    A src/test/java/ch/qos/logback/decoder/ThreadNameDecoderTest.java

  Log Message:
  -----------
  Add parser for %thread and %logger (Issue #4)


  Commit: 69cc7ffb8225536adb5aa1ff7009b71a89631c58
      https://github.com/qos-ch/logback-decoder/commit/69cc7ffb8225536adb5aa1ff7009b71a89631c58
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A src/main/java/ch/qos/logback/decoder/CallerStackTraceParser.java
    A src/main/java/ch/qos/logback/decoder/ClassOfCallerParser.java
    A src/main/java/ch/qos/logback/decoder/ContextNameParser.java
    M src/main/java/ch/qos/logback/decoder/DateParser.java
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    A src/main/java/ch/qos/logback/decoder/IStaticLoggingEvent.java
    M src/main/java/ch/qos/logback/decoder/LevelParser.java
    M src/main/java/ch/qos/logback/decoder/LoggerNameParser.java
    M src/main/java/ch/qos/logback/decoder/MessageParser.java
    A src/main/java/ch/qos/logback/decoder/StaticLoggingEvent.java
    M src/main/java/ch/qos/logback/decoder/ThreadNameParser.java
    M src/main/java/ch/qos/logback/decoder/regex/RegexPatterns.java
    A src/test/java/ch/qos/logback/decoder/CallerStackTraceDecoderTest.java
    M src/test/java/ch/qos/logback/decoder/regex/RegexPatternsTest.java

  Log Message:
  -----------
  Add parser for %caller, %contextName, and %class (Issue #4)


  Commit: a9e2d2e299291d0b1b9a6dbd329c94622118e48d
      https://github.com/qos-ch/logback-decoder/commit/a9e2d2e299291d0b1b9a6dbd329c94622118e48d
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/decoder/regex/PatternLayoutRegexUtilTest.java

  Log Message:
  -----------
  Allow flexible whitespace in PatternLayoutRegexUtilTest


  Commit: 6ca4999e5afbed15cf1884a8cb5225d3d8d87708
      https://github.com/qos-ch/logback-decoder/commit/6ca4999e5afbed15cf1884a8cb5225d3d8d87708
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    A src/main/java/ch/qos/logback/decoder/LineOfCallerParser.java
    M src/main/java/ch/qos/logback/decoder/regex/RegexPatterns.java
    A src/test/java/ch/qos/logback/decoder/LineOfCallerDecoderTest.java

  Log Message:
  -----------
  Add parser for %line (Issue #4)


  Commit: a6ca5c7397697c9eb14a84244a50d74467ff89b9
      https://github.com/qos-ch/logback-decoder/commit/a6ca5c7397697c9eb14a84244a50d74467ff89b9
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/decoder/LoggerNameDecoderTest.java

  Log Message:
  -----------
  Add test cases to LoggerNameDecoderTest


  Commit: a70d8c4a0eaa01750d9dd142198d3e5764aa6dda
      https://github.com/qos-ch/logback-decoder/commit/a70d8c4a0eaa01750d9dd142198d3e5764aa6dda
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/decoder/ThreadNameDecoderTest.java

  Log Message:
  -----------
  Add test cases to ThreadNameDecoderTest


  Commit: e6979171f272094b4a4339cea25842ef253496f7
      https://github.com/qos-ch/logback-decoder/commit/e6979171f272094b4a4339cea25842ef253496f7
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/main/java/ch/qos/logback/decoder/Decoder.java
    A src/main/java/ch/qos/logback/decoder/MethodOfCallerParser.java
    A src/test/java/ch/qos/logback/decoder/MethodOfCallerDecoderTest.java

  Log Message:
  -----------
  Add parser for %method (Issue #4)


  Commit: 99d68bb41840971780f7ad8078367f0c5f2e2b9d
      https://github.com/qos-ch/logback-decoder/commit/99d68bb41840971780f7ad8078367f0c5f2e2b9d
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A src/test/java/ch/qos/logback/decoder/ClassOfCallerDecoderTest.java

  Log Message:
  -----------
  Add unit test for ClassOfCallerDecoder


  Commit: 23e8ae8247b5b579195c34ba456556d4ec66f373
      https://github.com/qos-ch/logback-decoder/commit/23e8ae8247b5b579195c34ba456556d4ec66f373
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M src/test/java/ch/qos/logback/decoder/LineOfCallerDecoderTest.java
    M src/test/java/ch/qos/logback/decoder/MethodOfCallerDecoderTest.java

  Log Message:
  -----------
  Fix typos in comments


  Commit: ec56947ba386e295644c6ccfbacd2f2a98ddb03d
      https://github.com/qos-ch/logback-decoder/commit/ec56947ba386e295644c6ccfbacd2f2a98ddb03d
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A src/test/java/ch/qos/logback/decoder/ContextNameDecoderTest.java
    M src/test/java/ch/qos/logback/decoder/DecoderTest.java

  Log Message:
  -----------
  Add unit test for ContextNameDecoder


  Commit: f2e88cfaab418ffde0a6e8c134f4674547a5b65f
      https://github.com/qos-ch/logback-decoder/commit/f2e88cfaab418ffde0a6e8c134f4674547a5b65f
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    A src/test/java/ch/qos/logback/decoder/MessageDecoderTest.java

  Log Message:
  -----------
  Add unit test for MessageDecoder


  Commit: af059de247f27fa5faaaf9c0590ca94dc309c410
      https://github.com/qos-ch/logback-decoder/commit/af059de247f27fa5faaaf9c0590ca94dc309c410
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2013-07-21 (Sun, 21 Jul 2013)

  Changed paths:
    M pom.xml
    A src/main/licenseHeader.txt

  Log Message:
  -----------
  Add static analysis to POM

1. Run:  mvn -Panalyze clean test site
2. Open: target/site/project-reports.html


Compare: https://github.com/qos-ch/logback-decoder/compare/8195e77b8374...af059de247f2


More information about the logback-dev mailing list