[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, master, updated. v_0.9.25-49-gf1db404

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Tue Dec 21 20:15:13 CET 2010


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  f1db4042a372249765b52d6b430b7f33dcbf410b (commit)
      from  2d5659a6ad57e8daf536f6263a274d1e0bc430ff (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=f1db4042a372249765b52d6b430b7f33dcbf410b
http://github.com/ceki/logback/commit/f1db4042a372249765b52d6b430b7f33dcbf410b

commit f1db4042a372249765b52d6b430b7f33dcbf410b
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Tue Dec 21 20:12:54 2010 +0100

    add missing file

diff --git a/logback-classic/src/test/input/joran/pattern/replace0.xml b/logback-classic/src/test/input/joran/pattern/replace0.xml
new file mode 100644
index 0000000..dbdfd4a
--- /dev/null
+++ b/logback-classic/src/test/input/joran/pattern/replace0.xml
@@ -0,0 +1,15 @@
+<configuration>
+
+  <conversionRule conversionWord="sample"
+    converterClass="ch.qos.logback.classic.testUtil.SampleConverter" />
+
+  <appender name="LIST" class="ch.qos.logback.core.testUtil.StringListAppender">
+    <layout class="ch.qos.logback.classic.PatternLayout">
+      <Pattern>%replace(%msg){'\d{14,16}', 'XXXX'}</Pattern>
+    </layout>
+  </appender>
+
+  <root level="debug">
+    <appender-ref ref="LIST" />
+  </root>
+</configuration>
\ No newline at end of file
diff --git a/logback-core/src/main/java/ch/qos/logback/core/pattern/ReplacingCompositeConverter.java b/logback-core/src/main/java/ch/qos/logback/core/pattern/ReplacingCompositeConverter.java
index 55ef3ff..6542a44 100644
--- a/logback-core/src/main/java/ch/qos/logback/core/pattern/ReplacingCompositeConverter.java
+++ b/logback-core/src/main/java/ch/qos/logback/core/pattern/ReplacingCompositeConverter.java
@@ -44,7 +44,6 @@ public class ReplacingCompositeConverter<E> extends CompositeConverter<E> {
     //.matcher(this).replaceAll(replacement);
 
     replacement = optionList.get(1);
-    System.out.println("regex="+regex);
     super.start();
   }
 
diff --git a/logback-site/src/site/pages/recipes/emailPerTransaction.html b/logback-site/src/site/pages/recipes/emailPerTransaction.html
index 68d9837..a13a167 100644
--- a/logback-site/src/site/pages/recipes/emailPerTransaction.html
+++ b/logback-site/src/site/pages/recipes/emailPerTransaction.html
@@ -136,6 +136,7 @@ public class PrimeAction extends Action {
     &lt;SMTPHost>NAME_OF_SMTP_HOST&lt;/SMTPHost>
     &lt;to>...&lt;/to>                                         
     &lt;from>...&lt;/from>
+    &lt;subject>Prime - %mdc{number}&lt;/subject>
     &lt;layout class="ch.qos.logback.classic.html.HTMLLayout">
       &lt;pattern>%date%level%logger{24}%msg&lt;/pattern>
     &lt;/layout>
@@ -159,7 +160,11 @@ public class PrimeAction extends Action {
 
    <p>While the previous configuration file will trigger an outgoing
    email message whenenver an event is marked with "SMTP_TRIGGER", the
-   contents of the message will lump together messag
+   contents of the message will contain events generated by different
+   transactions. With a little effort, we can actually seperate events
+   belonging to different transactions so that the outgoing email
+   triggeed at the end of the transaction contains logs from that
+   transaction and only that one.
    </p>
 
 
@@ -171,6 +176,7 @@ public class PrimeAction extends Action {
     &lt;smtpHost>NAME_OF_SMTP_HOST&lt;/smtpHost>
     &lt;to>name at some.smtp.host&lt;/to>
     &lt;from>testing at ...&lt;/from>
+    &lt;subject>Prime - %mdc{number}&lt;/subject>
     &lt;layout class="ch.qos.logback.classic.html.HTMLLayout">
        &lt;pattern>%date%level%logger{24}%msg&lt;/pattern>
     &lt;/layout>
@@ -202,8 +208,10 @@ public class PrimeAction extends Action {
 
   &lt;appender name="SMTP" class="ch.qos.logback.classic.net.SMTPAppender">
     &lt;SMTPHost>NAME_OF_SMTP_HOST&lt;/SMTPHost>
-    &lt;To>com&lt;/To>
-    &lt;From>&lt;/From>
+    &lt;to>com&lt;/to>
+    &lt;from>&lt;/from>
+    &lt;subject>Prime - %mdc{number}&lt;/subject>
+
     &lt;layout class="ch.qos.logback.classic.html.HTMLLayout">
        &lt;pattern>%date%level%logger{24}%msg&lt;/pattern>
     &lt;/layout>

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

Summary of changes:
 .../patternLayout0.xml => pattern/replace0.xml}    |    2 +-
 .../core/pattern/ReplacingCompositeConverter.java  |    1 -
 .../site/pages/recipes/emailPerTransaction.html    |   14 +++++++++++---
 3 files changed, 12 insertions(+), 5 deletions(-)
 copy logback-classic/src/test/input/joran/{conversionRule/patternLayout0.xml => pattern/replace0.xml} (82%)


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


More information about the logback-dev mailing list