You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2008/10/16 19:57:49 UTC

svn commit: r705292 - in /incubator/qpid/trunk/qpid/cpp/src/qpid/log: Statement.cpp Statement.h

Author: shuston
Date: Thu Oct 16 10:57:48 2008
New Revision: 705292

URL: http://svn.apache.org/viewvc?rev=705292&view=rev
Log:
Remove syslog-specific code from portable part of logging; was already placed in posix-specific part. Resolves QPID-1361

Modified:
    incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.cpp
    incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.h

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.cpp
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.cpp?rev=705292&r1=705291&r2=705292&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.cpp (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.cpp Thu Oct 16 10:57:48 2008
@@ -21,7 +21,6 @@
 #include <boost/bind.hpp>
 #include <stdexcept>
 #include <algorithm>
-#include <syslog.h>
 #include <ctype.h>
 
 namespace qpid {
@@ -67,11 +66,6 @@
     "trace", "debug", "info", "notice", "warning", "error", "critical"
 };
 
-int priorities[LevelTraits::COUNT] = {
-    LOG_DEBUG, LOG_DEBUG, LOG_INFO, LOG_NOTICE,
-    LOG_WARNING, LOG_ERR, LOG_CRIT
-};
-
 } // namespace
 
 Level LevelTraits::level(const char* name) {
@@ -86,8 +80,4 @@
     return names[l];
 }
 
-int LevelTraits::priority(Level l) {
-    return priorities[l];
-}
-
 }} // namespace qpid::log

Modified: incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.h
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.h?rev=705292&r1=705291&r2=705292&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.h (original)
+++ incubator/qpid/trunk/qpid/cpp/src/qpid/log/Statement.h Thu Oct 16 10:57:48 2008
@@ -53,9 +53,6 @@
 
     /** String name of level */
     static const char* name(Level); 
-
-    /** Syslog priority of level */
-    static int priority(Level);
 };
     
 /** POD struct representing a logging statement in source code. */