[logback-dev] [qos-ch/logback] 24b253: Add support for depth range to CallerDataConverter

Tony Trinh tony19 at gmail.com
Sun Dec 28 23:56:11 CET 2014


  Branch: refs/heads/master
  Home:   https://github.com/qos-ch/logback
  Commit: 24b253fcf8089aa8f4ba0473f9df48df1a0579c2
      https://github.com/qos-ch/logback/commit/24b253fcf8089aa8f4ba0473f9df48df1a0579c2
  Author: Janeček Jakub <janecek at avast.com>
  Date:   2014-12-22 (Mon, 22 Dec 2014)

  Changed paths:
    M logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java
    M logback-classic/src/test/java/ch/qos/logback/classic/pattern/ConverterTest.java
    M logback-site/src/site/pages/manual/layouts.html

  Log Message:
  -----------
  Add support for depth range to CallerDataConverter

The caller converter of the pattern layout supports specification
of depth which changes the number of levels it writes out
from the stack trace. If you need to skip some levels and write out
a range of stack trace elemens you cannot do so. This commit adds
support for ranges using the double dot ("..") notation. It can be useful
while using for example Scala traits to simplify logging which causes
the file and line number to be incorrect. This way the user can see
the actual place where logging was called.


  Commit: 2a8d2c3c5f600113e57b67263cc2f2f9cee116e3
      https://github.com/qos-ch/logback/commit/2a8d2c3c5f600113e57b67263cc2f2f9cee116e3
  Author: Tony Trinh <tony19 at gmail.com>
  Date:   2014-12-28 (Sun, 28 Dec 2014)

  Changed paths:
    M logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java
    M logback-classic/src/test/java/ch/qos/logback/classic/pattern/ConverterTest.java
    M logback-site/src/site/pages/manual/layouts.html

  Log Message:
  -----------
  Merge pull request #222 from jakubjanecek/callerDataConverterRangeSupport

Add support for depth range to CallerDataConverter


Compare: https://github.com/qos-ch/logback/compare/3e68a8306b87...2a8d2c3c5f60


More information about the logback-dev mailing list