summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorStephen D. Huston <shuston@apache.org>2008-10-16 17:57:48 +0000
committerStephen D. Huston <shuston@apache.org>2008-10-16 17:57:48 +0000
commit5f7f58728c2f723338d18f5b80beb6e3c8c27c93 (patch)
tree39587b2bc8dc2d02ff0d05fdd3ccfb02d41bdcf5 /cpp/src
parenta5362adc00dca932cb702e0932e7ee974dfb8011 (diff)
downloadqpid-python-5f7f58728c2f723338d18f5b80beb6e3c8c27c93.tar.gz
Remove syslog-specific code from portable part of logging; was already placed in posix-specific part. Resolves QPID-1361
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@705292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/log/Statement.cpp10
-rw-r--r--cpp/src/qpid/log/Statement.h3
2 files changed, 0 insertions, 13 deletions
diff --git a/cpp/src/qpid/log/Statement.cpp b/cpp/src/qpid/log/Statement.cpp
index c2b286f1e7..090a993e78 100644
--- a/cpp/src/qpid/log/Statement.cpp
+++ b/cpp/src/qpid/log/Statement.cpp
@@ -21,7 +21,6 @@
#include <boost/bind.hpp>
#include <stdexcept>
#include <algorithm>
-#include <syslog.h>
#include <ctype.h>
namespace qpid {
@@ -67,11 +66,6 @@ const char* names[LevelTraits::COUNT] = {
"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 @@ const char* LevelTraits::name(Level l) {
return names[l];
}
-int LevelTraits::priority(Level l) {
- return priorities[l];
-}
-
}} // namespace qpid::log
diff --git a/cpp/src/qpid/log/Statement.h b/cpp/src/qpid/log/Statement.h
index f765df1cf4..23a6fe1e54 100644
--- a/cpp/src/qpid/log/Statement.h
+++ b/cpp/src/qpid/log/Statement.h
@@ -53,9 +53,6 @@ struct LevelTraits {
/** 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. */