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 namespace OpenDDS {
00018 namespace DCPS {
00019 
00020 /// Logging verbosity level.
00021 /// set by Service_Participant
00022 /// value guidelines:
00023 /// 1 - logs that should happen once per process or are warnings
00024 /// 2 - logs that should happen once per DDS entity
00025 /// 4 - logs that are related to administrative interfaces
00026 /// 6 - logs that should happen every Nth sample write/read
00027 /// 8 - logs that should happen once per sample write/read
00028 /// 10 - logs that may happen more than once per sample write/read
00029 extern OpenDDS_Dcps_Export unsigned int DCPS_debug_level;
00030 
00031 /// The proper way to set the DCPS_debug_level.
00032 /// This function allows for possible side-effects of setting the level.
00033 extern void OpenDDS_Dcps_Export set_DCPS_debug_level(unsigned int lvl);
00034 
00035 } // namespace OpenDDS
00036 } // namespace DCPS
00037 
00038 #endif /* OPENDDS_DCPS_DEBUG_H */

Generated on Fri Feb 12 20:05:22 2016 for OpenDDS by  doxygen 1.4.7