OpenDDS
Snapshot(2023/04/28-20:55)
dds
DCPS
Logging.cpp
Go to the documentation of this file.
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
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
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
}
31
32
}
// namespace DCPS
33
}
// namespace OpenDDS
34
35
OPENDDS_END_VERSIONED_NAMESPACE_DECL
ACE_DEBUG
#define ACE_DEBUG(X)
OpenDDS::DCPS::LogGuid
Definition:
GuidConverter.h:112
LM_INFO
LM_INFO
OpenDDS_Dcps_Export
#define OpenDDS_Dcps_Export
Definition:
dcps_export.h:24
OpenDDS::DCPS::log_progress
void OpenDDS_Dcps_Export log_progress(const char *activity, const GUID_t &local, const GUID_t &remote, const MonotonicTime_t &start_time, const GUID_t &reference)
Definition:
Logging.cpp:20
OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now
static TimePoint_T< MonotonicClock > now()
Definition:
TimePoint_T.inl:41
OpenDDS::DCPS::GUID_t
Definition:
DdsDcpsGuid.idl:57
OpenDDS::DCPS::log_bits
bool log_bits
Definition:
Logging.cpp:18
OpenDDS::DCPS::duration_to_time_value
ACE_INLINE OpenDDS_Dcps_Export ACE_Time_Value duration_to_time_value(const DDS::Duration_t &t)
Definition:
Time_Helper.inl:218
DdsDcps_pch.h
OPENDDS_END_VERSIONED_NAMESPACE_DECL
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
Definition:
Versioned_Namespace.h:48
OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
Definition:
Hash.cpp:17
GuidConverter.h
OpenDDS
The Internal API and Implementation of OpenDDS.
Definition:
AddressCache.h:28
OpenDDS::DCPS::MonotonicTime_t
Definition:
DdsDcpsInfoUtils.idl:18
Logging.h
Generated by
1.8.13