//Log.cpp,v 1.2 2004/02/13 17:48:40 huangming Exp
#include "Log.h"

#if !defined(__ACE_INLINE__)
#include "Log.inl"
#endif /* __ACE_INLINE__ */

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
}
