[logback-dev] [GIT] Logback: the generic, reliable, fast and flexible logging framework. branch, master, updated. v0.9.18-107-g901a3a1

added by portage for gitosis-gentoo git-noreply at pixie.qos.ch
Mon Mar 22 21:44:26 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  901a3a19b1f89939a2fed00c2cdc5ebd8c8bec77 (commit)
      from  130277bce03f608db7ab555ec28705f9fc974e1e (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=901a3a19b1f89939a2fed00c2cdc5ebd8c8bec77
http://github.com/ceki/logback/commit/901a3a19b1f89939a2fed00c2cdc5ebd8c8bec77

commit 901a3a19b1f89939a2fed00c2cdc5ebd8c8bec77
Author: Ceki Gulcu <ceki at qos.ch>
Date:   Mon Mar 22 21:43:33 2010 +0100

    - adding H2 and Sybase support

diff --git a/logback-core/src/main/java/ch/qos/logback/core/db/dialect/DBUtil.java b/logback-core/src/main/java/ch/qos/logback/core/db/dialect/DBUtil.java
index 330b573..cfb90c2 100644
--- a/logback-core/src/main/java/ch/qos/logback/core/db/dialect/DBUtil.java
+++ b/logback-core/src/main/java/ch/qos/logback/core/db/dialect/DBUtil.java
@@ -30,6 +30,8 @@ public class DBUtil extends ContextAwareBase {
   // private static final String MSSQL_PART = "mssqlserver4";
   private static final String MSSQL_PART = "microsoft";
   private static final String HSQL_PART = "hsql";
+  private static final String H2_PART = "h2";
+  private static final String SYBASE_SQLANY_PART = "sql anywhere";
 
   public static SQLDialectCode discoverSQLDialect(DatabaseMetaData meta) {
     SQLDialectCode dialectCode = SQLDialectCode.UNKNOWN_DIALECT;
@@ -48,6 +50,10 @@ public class DBUtil extends ContextAwareBase {
         return SQLDialectCode.MSSQL_DIALECT;
       } else if (dbName.indexOf(HSQL_PART) != -1) {
         return SQLDialectCode.HSQL_DIALECT;
+      } else if (dbName.indexOf(H2_PART) != -1) {
+        return SQLDialectCode.H2_DIALECT;
+      } else if (dbName.indexOf(SYBASE_SQLANY_PART) != -1) {
+        return SQLDialectCode.SYBASE_SQLANYWHERE_DIALECT;
       } else {
         return SQLDialectCode.UNKNOWN_DIALECT;
       }
@@ -64,24 +70,31 @@ public class DBUtil extends ContextAwareBase {
     switch (sqlDialectType) {
     case POSTGRES_DIALECT:
       sqlDialect = new PostgreSQLDialect();
-
       break;
+
     case MYSQL_DIALECT:
       sqlDialect = new MySQLDialect();
-
       break;
+    
     case ORACLE_DIALECT:
       sqlDialect = new OracleDialect();
-
       break;
+    
     case MSSQL_DIALECT:
       sqlDialect = new MsSQLDialect();
-
       break;
+    
     case HSQL_DIALECT:
       sqlDialect = new HSQLDBDialect();
 
+    case H2_DIALECT:
+      sqlDialect = new H2Dialect();
+      break;
+      
+    case SYBASE_SQLANYWHERE_DIALECT:
+      sqlDialect = new SybaseSqlAnywhereDialect();
       break;
+
     }
     return sqlDialect;
   }
diff --git a/logback-core/src/main/java/ch/qos/logback/core/db/dialect/SQLDialectCode.java b/logback-core/src/main/java/ch/qos/logback/core/db/dialect/SQLDialectCode.java
index 3176036..b643dec 100644
--- a/logback-core/src/main/java/ch/qos/logback/core/db/dialect/SQLDialectCode.java
+++ b/logback-core/src/main/java/ch/qos/logback/core/db/dialect/SQLDialectCode.java
@@ -19,5 +19,7 @@ public enum SQLDialectCode {
   MYSQL_DIALECT,
   ORACLE_DIALECT,
   MSSQL_DIALECT,
-  HSQL_DIALECT;  
+  HSQL_DIALECT, 
+  H2_DIALECT,
+  SYBASE_SQLANYWHERE_DIALECT;  
 }
diff --git a/logback-site/src/site/pages/news.html b/logback-site/src/site/pages/news.html
index 664b15a..92ca237 100644
--- a/logback-site/src/site/pages/news.html
+++ b/logback-site/src/site/pages/news.html
@@ -134,17 +134,26 @@
     reported by Tom SH Liu.
     </p>
 
-
     <p>DBAppender now outputs exception class and message. It will
     also output root causes, fixing
     <a href="http://jira.qos.ch/browse/LBCLASSIC-170">LBCLASSIC-170</a>
     reported by Tomasz Nurkiewicz.
     </p>
 
+    <p>You can now override table and column names in DBAppender. This
+    feature was requested in <a
+    href="http://jira.qos.ch/browse/LBCLASSIC-188">LBCLASSIC-188</a>
+    reported by Tomasz Nurkiewicz.
+    </p>
+
     <p>Fixed missing EVENT_ID column problem on PostgreSQL as reported
     in <a href="http://jira.qos.ch/browse/LBCORE-126">LBCORE-126</a>
     by Brian Edwards.</p>
 
+    <p>Added Sybase SQLAnywhere support in DBAppender. This feature
+    was requested by Michael Lynch in <a
+    href="http://jira.qos.ch/browse/LBCLASSIC-197">LBCLASSIC-197</a>.
+
     <p>Fixed <a
     href="http://jira.qos.ch/browse/LBSITE-36">LBSITE-36</a> reported
     by John Jimenez.</p>

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

Summary of changes:
 .../ch/qos/logback/core/db/dialect/DBUtil.java     |   21 ++++++++++++++++---
 .../logback/core/db/dialect/SQLDialectCode.java    |    4 ++-
 logback-site/src/site/pages/news.html              |   11 +++++++++-
 3 files changed, 30 insertions(+), 6 deletions(-)


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


More information about the logback-dev mailing list