diff options
author | Stephen D. Huston <shuston@apache.org> | 2008-10-16 17:57:48 +0000 |
---|---|---|
committer | Stephen D. Huston <shuston@apache.org> | 2008-10-16 17:57:48 +0000 |
commit | 559ffe5f5e496e57a9a39ff4a8f5d30be7062296 (patch) | |
tree | d830b6a58e0882c94c1db9f90fcf65e11a08e67b /qpid/cpp/src | |
parent | 6882c0dca4c1f03b23bbb0472cdec1b02b920276 (diff) | |
download | qpid-python-559ffe5f5e496e57a9a39ff4a8f5d30be7062296.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@705292 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src')
-rw-r--r-- | qpid/cpp/src/qpid/log/Statement.cpp | 10 | ||||
-rw-r--r-- | qpid/cpp/src/qpid/log/Statement.h | 3 |
2 files changed, 0 insertions, 13 deletions
diff --git a/qpid/cpp/src/qpid/log/Statement.cpp b/qpid/cpp/src/qpid/log/Statement.cpp index c2b286f1e7..090a993e78 100644 --- a/qpid/cpp/src/qpid/log/Statement.cpp +++ b/qpid/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/qpid/cpp/src/qpid/log/Statement.h b/qpid/cpp/src/qpid/log/Statement.h index f765df1cf4..23a6fe1e54 100644 --- a/qpid/cpp/src/qpid/log/Statement.h +++ b/qpid/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. */ |