debug.h

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #ifndef OPENDDS_DCPS_DEBUG_H
00009 #define OPENDDS_DCPS_DEBUG_H
00010 
00011 #include "dcps_export.h"
00012 
00013 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00014 #pragma once
00015 #endif /* ACE_LACKS_PRAGMA_ONCE */
00016 
00017 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00018 
00019 namespace OpenDDS {
00020 namespace DCPS {
00021 
00022 /// Logging verbosity level.
00023 /// set by Service_Participant
00024 /// value guidelines:
00025 /// 1 - logs that should happen once per process or are warnings
00026 /// 2 - logs that should happen once per DDS entity
00027 /// 4 - logs that are related to administrative interfaces
00028 /// 6 - logs that should happen every Nth sample write/read
00029 /// 8 - logs that should happen once per sample write/read
00030 /// 10 - logs that may happen more than once per sample write/read
00031 extern OpenDDS_Dcps_Export unsigned int DCPS_debug_level;
00032 
00033 /// The proper way to set the DCPS_debug_level.
00034 /// This function allows for possible side-effects of setting the level.
00035 extern void OpenDDS_Dcps_Export set_DCPS_debug_level(unsigned int lvl);
00036 
00037 } // namespace OpenDDS
00038 } // namespace DCPS
00039 
00040 OPENDDS_END_VERSIONED_NAMESPACE_DECL
00041 
00042 #endif /* OPENDDS_DCPS_DEBUG_H */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1