
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 1869d32c56f08e2a1af168ddf82219a37f05f633 (commit) from 5e51ada8f7bb344d6e16f3e0a5678353dc413ec4 (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=1869d32c56f08e2a1af168ddf... http://github.com/ceki/logback/commit/1869d32c56f08e2a1af168ddf82219a37f05f6... commit 1869d32c56f08e2a1af168ddf82219a37f05f633 Author: Ceki Gulcu <ceki@qos.ch> Date: Wed Nov 3 18:00:59 2010 +0100 adding recipes diff --git a/logback-site/src/site/pages/manual/migrationFromLog4j.html b/logback-site/src/site/pages/manual/migrationFromLog4j.html index 5d5fe00..6f44908 100644 --- a/logback-site/src/site/pages/manual/migrationFromLog4j.html +++ b/logback-site/src/site/pages/manual/migrationFromLog4j.html @@ -138,9 +138,9 @@ public class TrivialLogbackLayout extends <b>LayoutBase<ILoggingEvent></b> { <h3>Migrating a log4j appender</h3> - <p>Migrating an appender is quite similar to migrating layout. Here - is a trivially simple appender called <a - href="../xref/chapters/migrationFromLog4j/TrivialLog4jLayout.html">TrivialLog4jLayout</a> + <p>Migrating an appender is quite similar to migrating a + layout. Here is a trivially simple appender called <a + href="../xref/chapters/migrationFromLog4j/TrivialLog4jAppender.html">TrivialLog4jAppender</a> which writes on the console the string returned by its layout.</p> <pre class="prettyprint source">package chapters.migrationFromLog4j; diff --git a/logback-site/src/site/pages/recipes/emailPerTransaction.html b/logback-site/src/site/pages/recipes/emailPerTransaction.html new file mode 100644 index 0000000..d324f5c --- /dev/null +++ b/logback-site/src/site/pages/recipes/emailPerTransaction.html @@ -0,0 +1,60 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <title>Email per transaction</title> + <link rel="stylesheet" type="text/css" href="../css/common.css" /> + <link rel="stylesheet" type="text/css" href="../css/screen.css" media="screen" /> + <link rel="stylesheet" type="text/css" href="../css/_print.css" media="print" /> + + </head> + <body> + <script type="text/javascript">prefix='../';</script> + <script src="../templates/header.js" type="text/javascript"></script> + <div id="left"> + <noscript>Please turn on Javascript to view this menu</noscript> + <script src="../templates/left.js" type="text/javascript"></script> + </div> + <div id="content"> + + <h2>Send an email per transaction but only for certain users</h2> + + <p>Let Dave be a developper working on some business critical + software called Buscrit. Tata is a QA-enginner who needs to test + Buscrit on a regular basis. + </p> + + <p>Let us further assume that Buscrit deals + + <appender name="SMTP" class="ch.qos.logback.classic.net.SMTPAppender"> + <SMTPHost>smtp.nespresso.com</SMTPHost> + <To>com</To> + <From></From> + <layout class="ch.qos.logback.classic.html.HTMLLayout"> + <pattern>%date%level%logger{24}%msg</pattern> + </layout> + + <evaluator class="ch.qos.logback.classic.boolex.JaninoEventEvaluator"> + <expression> + (mdc != null && mdc.get("txUser") != null && + ((String) mdc.get("txUser")).contains("Mickey") ) + && + (marker != null && marker.contains("SMTP_TRIGGER") ) + </expression> + </evaluator> + + <discriminator class="ch.qos.logback.classic.sift.MDCBasedDiscriminator"> + <key>uuid</key> + <defaultValue>default</defaultValue> + </discriminator> + + + </appender> + + <script src="../templates/footer.js" type="text/javascript"></script> + </div> + </body> +</html> + \ No newline at end of file diff --git a/logback-site/src/site/pages/recipes/index.html b/logback-site/src/site/pages/recipes/index.html new file mode 100644 index 0000000..6b130e0 --- /dev/null +++ b/logback-site/src/site/pages/recipes/index.html @@ -0,0 +1,39 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> + <title>Logback Recipes</title> + <link rel="stylesheet" type="text/css" href="../css/common.css" /> + <link rel="stylesheet" type="text/css" href="../css/screen.css" media="screen" /> + <link rel="stylesheet" type="text/css" href="../css/_print.css" media="print" /> + + </head> + <body> + <script type="text/javascript">prefix='../';</script> + <script src="../templates/header.js" type="text/javascript"></script> + <div id="left"> + <noscript>Please turn on Javascript to view this menu</noscript> + <script src="../templates/left.js" type="text/javascript"></script> + </div> + <div id="content"> + + <h2>Logback recipes</h2> + + <div> + <p>Here is a list of logback-related recipes which you may + fund useful.</p> + + <ul> + <li><p><a href="emailPerTransaction.html">send an email per + transaction but only for certain users</a></p></li> + </ul> + </div> + + + <script src="../templates/footer.js" type="text/javascript"></script> + </div> + </body> +</html> + \ No newline at end of file ----------------------------------------------------------------------- Summary of changes: .../src/site/pages/manual/migrationFromLog4j.html | 6 +- .../site/pages/recipes/emailPerTransaction.html | 60 ++++++++++++++++++++ logback-site/src/site/pages/recipes/index.html | 39 +++++++++++++ 3 files changed, 102 insertions(+), 3 deletions(-) create mode 100644 logback-site/src/site/pages/recipes/emailPerTransaction.html create mode 100644 logback-site/src/site/pages/recipes/index.html hooks/post-receive -- Logback: the generic, reliable, fast and flexible logging framework.