diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp new file mode 100644 index 00000000000..6319f696946 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/FtRtEvent/Utils/Log.cpp @@ -0,0 +1,29 @@ +//$Id$ +#include "orbsvcs/FtRtEvent/Utils/Log.h" + +#if !defined(__ACE_INLINE__) +#include "orbsvcs/FtRtEvent/Utils/Log.inl" +#endif /* __ACE_INLINE__ */ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +namespace TAO_FTRTEC { + +unsigned int Log::log_level_; + +#ifndef NDEBUG + Log::Log (unsigned int log_level, const ACE_TCHAR* format, ...) + { + if (log_level_ >= log_level) { + va_list p; + va_start(p, format); + char str[1024]; + ACE_OS::vsprintf(str, format, p); + ACE_DEBUG((LM_DEBUG, str)); + va_end(p); + } + } +#endif +} + +TAO_END_VERSIONED_NAMESPACE_DECL |