[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, master, updated. v_0.9.27-13-g5b0b509

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Mon Jan 17 21:08:22 CET 2011


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  5b0b5091b70745f7ba3bbc65da0d948a936d2b56 (commit)
      from  20233406053eb9803270621f59386f9602827dba (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=5b0b5091b70745f7ba3bbc65da0d948a936d2b56
http://github.com/ceki/logback/commit/5b0b5091b70745f7ba3bbc65da0d948a936d2b56

commit 5b0b5091b70745f7ba3bbc65da0d948a936d2b56
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Mon Jan 17 21:05:24 2011 +0100

    new sample config file

diff --git a/logback-examples/src/main/java/chapters/appenders/conf/logback-timestamp-contextBirth.xml b/logback-examples/src/main/java/chapters/appenders/conf/logback-timestamp-contextBirth.xml
new file mode 100644
index 0000000..58f39dc
--- /dev/null
+++ b/logback-examples/src/main/java/chapters/appenders/conf/logback-timestamp-contextBirth.xml
@@ -0,0 +1,22 @@
+<configuration>
+
+  <!-- Insert the logger context bith date formatted as
+       "yyyyMMdd'T'HHmmss" under the key "bySecond" into the logger
+       context. This value will be available to all subsequent
+       configuration elements. -->
+  <timestamp key="bySecond" datePattern="yyyyMMdd'T'HHmmss" 
+             timeReference="contextBirth"/>
+
+  <appender name="FILE" class="ch.qos.logback.core.FileAppender">
+    <!-- use the previously created timestamp to create a uniquely
+         named log file -->
+    <file>log-${bySecond}.txt</file>
+    <encoder>
+      <pattern>%logger{35} - %msg%n</pattern>
+    </encoder>
+  </appender>
+
+  <root level="DEBUG">
+    <appender-ref ref="FILE" />
+  </root>
+</configuration>

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

Summary of changes:
 ...tamp.xml => logback-timestamp-contextBirth.xml} |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)
 copy logback-examples/src/main/java/chapters/appenders/conf/{logback-timestamp.xml => logback-timestamp-contextBirth.xml} (54%)


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


More information about the logback-dev mailing list