summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/logging.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-051-512/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4651: C++ Broker add --log-disable optionCharles E. Rolke2013-04-261-0/+122
| | | | | | | | Reviewed at https://reviews.apache.org/r/10799/ git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1476409 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 force [Test] log category into test instanceCharles E. Rolke2012-06-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1354040 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 log category - force log statement to be in test category and to ↵Charles E. Rolke2012-06-191-1/+1
| | | | | | display [Test] with no external processing. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1351827 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix failing unit_test, updated for changes in log format.Alan Conway2012-06-121-2/+2
| | | | | | | The test had not been updated to account for changes to log format, adding [Category] to front of messages. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349389 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3902 C++ Broker add log categoriesCharles E. Rolke2012-06-111-1/+1
| | | | | | | | svn merge --reintegrate from branch qpid/branches/qpid-3902/qpid git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1349006 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Remove some namespace polluting "using namespace boost" declarationsAndrew Stitcher2012-03-151-1/+3
| | | | | | | | - Blanket "using namespace" declarations like these are BAD, they can change the symbols imported into your namespace and you have no control over this. - Needed to make QPID-3893 compile on windows git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1301168 13f79535-47bb-0310-9956-ffa450edef68
* QPID-3891 C++ Broker --log-function is too chatty.Charles E. Rolke2012-03-091-1/+4
| | | | | | | | Print only class-qualified function names and no args. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1299015 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of boost::regex in test code.Alan Conway2010-10-211-1/+1
| | | | | | | It was barely being used and it causes portability problems on older versions of boost. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1026103 13f79535-47bb-0310-9956-ffa450edef68
* Tidied up namespace usageAndrew Stitcher2009-09-091-13/+18
| | | | | | Miscelleneous whitespace fixes git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@813094 13f79535-47bb-0310-9956-ffa450edef68
* Remove incorrect directory from #includeAlan Conway2009-07-141-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793912 13f79535-47bb-0310-9956-ffa450edef68
* Add directory to #includeAlan Conway2009-07-141-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@793909 13f79535-47bb-0310-9956-ffa450edef68
* In testLoggerFormat:Manuel Teira Paz2009-03-171-1/+1
| | | | | | | | | | Change Logger::FUNCTION test to be aware that not all compilers may implement a __func__ macro -> Compare directly with BOOST_CURRENT_FUNCTION result git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@755160 13f79535-47bb-0310-9956-ffa450edef68
* Changes to build DLLs instead of static libs on Windows; primarily added ↵Stephen D. Huston2009-03-121-0/+14
| | | | | | decorators to exported names. Fixes QPID-1673 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@753014 13f79535-47bb-0310-9956-ffa450edef68
* Update test in line with change to default logging level (see r731649).Gordon Sim2009-01-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@731734 13f79535-47bb-0310-9956-ffa450edef68
* Split logging options into portable options and sink-related options that ↵Stephen D. Huston2008-10-151-11/+26
| | | | | | are platform-specific. Re-did sink options for Posix as discussed on qpid-dev (no more --log-output, but more specific --log-to-<target> options. Allows addition of Windows options without further reorg of Posix code. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@705083 13f79535-47bb-0310-9956-ffa450edef68
* Added ScopedSuppressLogging, used to suppress expected error messages in tests.Alan Conway2008-09-251-43/+10
| | | | | | | For examples see src/tests/exception_test.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@698981 13f79535-47bb-0310-9956-ffa450edef68
* Cluster prototype: handles client-initiated commands (not dequeues)Alan Conway2008-07-041-2/+2
| | | | | | | | | | | | | | | | Details - Cluster.cpp: serializes all frames thru cluster (see below) - broker/ConnectionManager: Added handler chain in front of Connection::received. - sys::Fork and ForkWithMessage - abstractions for forking with posix impl. - tests/ForkedBroker.h: test utility to fork a broker process. - broker/SignalHandler: Encapsulated signal handling from qpidd.cpp - Various minor logging & error message improvements to aid debugging. NB: current impl will not scale. It is functional working starting point so we can start testing & profiling to find the right optimizations. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@674107 13f79535-47bb-0310-9956-ffa450edef68
* Added --syslog-name, --syslog-facility options.Alan Conway2008-06-021-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@662558 13f79535-47bb-0310-9956-ffa450edef68
* Patch for improved compatibility with gcc 3.4 and boost 1.33Andrew Stitcher2008-04-171-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@649294 13f79535-47bb-0310-9956-ffa450edef68
* Fixed logger warning on F9.Alan Conway2008-04-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@643957 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile errors/warnings with gcc 4.3Alan Conway2008-03-251-17/+11
| | | | | | | | | | | | | - added missing #includes that were implicitly included via old headers. - add namespace-qualifiers to fix "changes meaning of name" warnings. - ./qpid/ptr_map.h:51: fixed "qualified return value" warning. - use const char* for "conversion from string constant to ‘char*’" warnings Applied patch from https://issues.apache.org/jira/browse/QPID-869 remove depenency on boost/date_time, causes warnings with gcc 4.3. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@640806 13f79535-47bb-0310-9956-ffa450edef68
* Quote all non-printable ASCII characters (not just control characters)Alan Conway2008-02-121-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@620889 13f79535-47bb-0310-9956-ffa450edef68
* Quote unprintable control characters in log output.Alan Conway2008-02-071-0/+20
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@619424 13f79535-47bb-0310-9956-ffa450edef68
* Updated tests expectations inline with recent change to default logging outputGordon Sim2007-12-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@604244 13f79535-47bb-0310-9956-ffa450edef68
* Fixed to build with boost 1.34 as well as boost 1.33Alan Conway2007-11-281-8/+5
| | | | | | | | - boost::ptr_map API changed. - Boost.Test unit test framework changes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@599067 13f79535-47bb-0310-9956-ffa450edef68
* Fixed test in line with changes made to defaults.Gordon Sim2007-11-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@598924 13f79535-47bb-0310-9956-ffa450edef68
* Change options --log.foo to --log-foo for consistency.Alan Conway2007-11-071-24/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@592956 13f79535-47bb-0310-9956-ffa450edef68
* Preparation for session thread safety overhaul:Alan Conway2007-11-011-3/+8
| | | | | | | | | | - simplified SessionState, responsibility for protocol states now in Handlers - qpid::RefCounted, qpid::intrusive_ptr reference counting support. - build boost unit tests as single exe, speeds up testing. - fixed leak in AsynchIOAcceptor.cpp git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@590869 13f79535-47bb-0310-9956-ffa450edef68
* Session resume support in client & broker: Client can resume a sessionAlan Conway2007-10-261-25/+27
| | | | | | | | | | | | | | | | | | | | | | | | | after voluntary suspend() or network failure. Frames lost in network failure are automatically re-transmitted for transparent re-connection. client::Session improvements: - Locking to avoid races between network & user threads. - Replaced client::StateManager with sys::StateMonitor - avoid heap allocation. qpid::Exception clean up: - use QPID_MSG consistently to format exception messages. - throw typed exceptions (in reply_exceptions.h) for AMQP exceptions. - re-throw correct typed exception on client for exceptions from broker. - Removed QpidError.h rubygen/templates/constants.rb: - constants.h: Added FOO_CLASS_ID and FOO_BAR_METHOD_ID constants. - reply_constants.h: Added throwReplyException(code, text) log::Logger: - Fixed shutdown race in Statement::~Initializer() git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@588761 13f79535-47bb-0310-9956-ffa450edef68
* Make check now starts a broker on a dynamically assigned port, soAlan Conway2007-06-271-43/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | multiple qpid builds on one host will not conflict. * src/tests/run_test, start_broker, kill_broker: Broker writes port to file, run_test sets QPID_PORT in environment of all tests. * src/tests/topic_publisher.cpp, topic_listener.cpp, client_test.cpp: All test clients use TestOptions to parse options from args and env. * src/qpid/Options.h: Renamed from CommonOptions.h Simplified use of Options class. * src/qpid/Url.h: Renamed defaultPort constant. * src/tests/logging.cpp: * src/tests/interop_runner.cpp: * src/tests/TestOptions.h: * src/qpidd.cpp: * src/qpid/log/Options.cpp: * src/qpid/log/Logger.cpp: * src/qpid/broker/Broker.cpp: Updated for changes to Options. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@550993 13f79535-47bb-0310-9956-ffa450edef68
* 2007-06-25 <aconway@redhat.com>Alan Conway2007-06-261-0/+375
Cluster class implementing cluster membership map. * src/qpid/cluster/Cluster.cpp: Cluster membership implementation. * src/qpid/cluster/Cpg.cpp: Support for boost::function callbacks. * src/tests/Url.cpp: Implements AMQP-95 URL format. * xml/cluster.xml: Cluster join method. Build/packaging * README: Remove mention of openais till clustering is functional. For now it is optional and we depend on an unpackaged version. * configure.ac: Check openais has cpg_local_get(). * Makefile.am: Added cluster.xml to EXTRA_DIST. * src/generate.sh: add cluster.xml to codegen. * src/tests/Makefile.am: - Generate individual "sudo -u ais" wrappers for openais tests. - Drop "unit" directory, all unit tests in "tests" directory Minor changes: * src/qpid/sys/posix/Socket.cpp: * src/qpid/sys/posix/PosixAcceptor.cpp: * src/qpid/sys/posix/EventChannelAcceptor.cpp: * src/qpid/sys/apr/APRAcceptor.cpp: * src/qpid/sys/Acceptor.h (getHost): Added getHost() * src/tests/.valgrind.supp-default: Suppress benign valgrind warning in libcpg. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@550658 13f79535-47bb-0310-9956-ffa450edef68