
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Logback: the generic, reliable, fast and flexible logging framework.". The branch, master has been updated via 1cc67039562ac28b9c85e2c9e41269703780f99d (commit) from 8bf8416306b4831c65ad74c9d6e947173c253a51 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://git.qos.ch/gitweb/?p=logback.git;a=commit;h=1cc67039562ac28b9c85e2c9e... http://github.com/ceki/logback/commit/1cc67039562ac28b9c85e2c9e41269703780f9... commit 1cc67039562ac28b9c85e2c9e41269703780f99d Author: Ceki Gulcu <ceki@qos.ch> Date: Mon Nov 7 20:56:32 2011 +0100 added getCallerLinePrefix method in response to LBCORE-233 diff --git a/logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java b/logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java index fc280b6..81bc67e 100644 --- a/logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java +++ b/logback-classic/src/main/java/ch/qos/logback/classic/pattern/CallerDataConverter.java @@ -32,9 +32,12 @@ import ch.qos.logback.core.status.ErrorStatus; */ public class CallerDataConverter extends ClassicConverter { + public static final String DEFAULT_CALLER_LINE_PREFIX = "Caller+"; + int depth = 5; List<EventEvaluator<ILoggingEvent>> evaluatorList = null; + final int MAX_ERROR_COUNT = 4; int errorCount = 0; @@ -118,7 +121,7 @@ public class CallerDataConverter extends ClassicConverter { int limit = depth < cda.length ? depth : cda.length; for (int i = 0; i < limit; i++) { - buf.append("Caller+"); + buf.append(getCallerLinePrefix()); buf.append(i); buf.append("\t at "); buf.append(cda[i]); @@ -129,4 +132,8 @@ public class CallerDataConverter extends ClassicConverter { return CallerData.CALLER_DATA_NA; } } + + protected String getCallerLinePrefix() { + return DEFAULT_CALLER_LINE_PREFIX; + } } ----------------------------------------------------------------------- Summary of changes: .../classic/pattern/CallerDataConverter.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) hooks/post-receive -- Logback: the generic, reliable, fast and flexible logging framework.