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

Branch: refs/heads/master Home: https://github.com/qos-ch/logback Commit: 24b253fcf8089aa8f4ba0473f9df48df1a0579c2 https://github.com/qos-ch/logback/commit/24b253fcf8089aa8f4ba0473f9df48df1a0... Author: Janeček Jakub <janecek@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/2a8d2c3c5f600113e57b67263cc2f2f9cee... Author: Tony Trinh <tony19@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
participants (1)
-
Tony Trinh