Line data Source code
1 : /* 2 : * 3 : * 4 : * Distributed under the OpenDDS License. 5 : * See: http://www.opendds.org/license.html 6 : */ 7 : #include "DCPS/DdsDcps_pch.h" 8 : 9 : #include "Logging.h" 10 : 11 : #include "GuidConverter.h" 12 : 13 : OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL 14 : 15 : namespace OpenDDS { 16 : namespace DCPS { 17 : 18 : bool log_bits = false; 19 : 20 0 : void OpenDDS_Dcps_Export log_progress(const char* activity, 21 : const GUID_t& local, 22 : const GUID_t& remote, 23 : const MonotonicTime_t& start_time, 24 : const GUID_t& reference) 25 : { 26 0 : ACE_DEBUG((LM_INFO, "(%P|%t) {transport_debug.log_progress} local: %C remote: %C reference: %C time(ms): %Lu activity: %C\n", 27 : DCPS::LogGuid(local).c_str(), DCPS::LogGuid(remote).c_str(), DCPS::LogGuid(reference).c_str(), 28 : duration_to_time_value(MonotonicTimePoint::now().to_monotonic_time() - start_time).msec(), 29 : activity)); 30 0 : } 31 : 32 : } // namespace DCPS 33 : } // namespace OpenDDS 34 : 35 : OPENDDS_END_VERSIONED_NAMESPACE_DECL