[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch master updated. v_1.0.1-3-gadd5b06

Gitbot git-noreply at pixie.qos.ch
Wed Mar 7 18:19:55 CET 2012


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  add5b0681c0b7fc757f5b852da0b89d00e1d2148 (commit)
      from  4bd6f468342d5d4eff28f3d56accf577066d1b60 (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=add5b0681c0b7fc757f5b852da0b89d00e1d2148
http://github.com/ceki/logback/commit/add5b0681c0b7fc757f5b852da0b89d00e1d2148

commit add5b0681c0b7fc757f5b852da0b89d00e1d2148
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Wed Mar 7 18:19:30 2012 +0100

    ongoing work on LBCORE-234

diff --git a/logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java b/logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
index 07d8400..6ce3241 100644
--- a/logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
+++ b/logback-core/src/main/java/ch/qos/logback/core/pattern/PatternLayoutBase.java
@@ -32,8 +32,13 @@ abstract public class PatternLayoutBase<E> extends LayoutBase<E> {
   String pattern;
   protected PostCompileProcessor<E> postCompileProcessor;
 
+
   Map<String, String> instanceConverterMap = new HashMap<String, String>();
 
+
+
+  boolean forceEmptyPresentationHeader = false;
+
   /**
    * Concrete implementations of this class are responsible for elaborating the
    * mapping between pattern words and converters.
@@ -142,8 +147,19 @@ abstract public class PatternLayoutBase<E> extends LayoutBase<E> {
     return CoreConstants.EMPTY_STRING;
   }
 
+  public boolean isForceEmptyPresentationHeader() {
+    return forceEmptyPresentationHeader;
+  }
+
+  public void setForceEmptyPresentationHeader(boolean forceEmptyPresentationHeader) {
+    this.forceEmptyPresentationHeader = forceEmptyPresentationHeader;
+  }
+  
   @Override
   public String getPresentationHeader() {
-    return getPresentationHeaderPrefix()+pattern;
+    if(forceEmptyPresentationHeader)
+      return null;
+    else
+      return getPresentationHeaderPrefix()+pattern;
   }
 }

-----------------------------------------------------------------------

Summary of changes:
 .../logback/core/pattern/PatternLayoutBase.java    |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Logback: the generic, reliable, fast and flexible logging framework.


More information about the logback-dev mailing list