[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch master updated. v_1.0.0-14-gc8ba2fe

Gitbot git-noreply at pixie.qos.ch
Sat Nov 5 12:28:42 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  c8ba2fe56d8365b5062e080de71363679c3bd3d0 (commit)
      from  c4012ae2d75b370754f327d5ad896baccf636bb7 (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=c8ba2fe56d8365b5062e080de71363679c3bd3d0
http://github.com/ceki/logback/commit/c8ba2fe56d8365b5062e080de71363679c3bd3d0

commit c8ba2fe56d8365b5062e080de71363679c3bd3d0
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Sat Nov 5 00:28:01 2011 +0100

    set context property after reset

diff --git a/logback-site/src/site/pages/faq.html b/logback-site/src/site/pages/faq.html
index d684998..014a460 100644
--- a/logback-site/src/site/pages/faq.html
+++ b/logback-site/src/site/pages/faq.html
@@ -242,12 +242,12 @@
           </p>
 
           <p class="source">  LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
-  // inject the name of the current application as "application-name"
-  // property of the LoggerContext
-  <b>context.putProperty("application-name", NAME_OF_CURRENT_APPLICATION);</b>
   JoranConfigurator jc = new JoranConfigurator();
   jc.setContext(context);
   context.reset(); // override default configuration
+  // inject the name of the current application as "application-name"
+  // property of the LoggerContext
+  <b>context.putProperty("application-name", NAME_OF_CURRENT_APPLICATION);</b>
   jc.doConfigure("/path/to/the/above/configuration/file.xml"); </p>
 
           <hr/>

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

Summary of changes:
 logback-site/src/site/pages/faq.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


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


More information about the logback-dev mailing list