#include <rtm/RTC.h>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <stdarg.h>
#include <limits.h>
#include <time.h>
#include <errno.h>
#include <ace/Mutex.h>
#include <rtm/config_rtc.h>
Go to the source code of this file.
Namespaces | |
namespace | RTC |
Classes | |
class | RTC::sync_callback< _CharT, _Traits > |
sync_callback abstract class More... | |
class | RTC::basic_logbuf< _CharT, _Traits > |
Logger buffer class. More... | |
class | RTC::basic_medlogbuf< _CharT, _Traits > |
Mediate logger buffer class. More... | |
class | RTC::basic_dummybuf< _CharT, _Traits > |
class | RTC::basic_logstream< _CharT, _Traits > |
Logger format class. More... | |
Defines | |
#define | RTC_LOG(LV, fmt) |
General-purpose log output macro. | |
#define | RTC_ERROR(fmt) |
Error log output macro. | |
#define | RTC_WARN(fmt) |
Warning log output macro. | |
#define | RTC_INFO(fmt) |
Information level log output macro. | |
#define | RTC_NORMAL(fmt) |
Normal level log output macro. | |
#define | RTC_DEBUG(fmt) |
Debug level log output macro. | |
#define | RTC_TRACE(fmt) |
Trace level log output macro. | |
#define | RTC_VERBOSE(fmt) |
Verbose level log output macro. | |
#define | RTC_PARANOID(fmt) |
Paranoid level log output macro. | |
Typedefs | |
typedef sync_callback< char > | RTC::SyncCallback |
typedef basic_logbuf < char > | RTC::Logbuf |
typedef basic_medlogbuf < char > | RTC::MedLogbuf |
typedef basic_logstream < char > | RTC::LogStream |
#define RTC_DEBUG | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_DEBUG) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( DEBUG, TRACE, VERBOSE, PARANOID ), message will be output to log.
#define RTC_ERROR | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_ERROR) << rtcout.printf fmt << std::endl; \ rtcout.release()
This is a log output macro of the error level. If log levels are ERROR, WARN, INFO, NORMAL, DEBUG, TRACE, VERBOSE or PARANOID, message will be output to log.
#define RTC_INFO | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_INFO) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ), message will be output to log.
#define RTC_LOG | ( | LV, | |||
fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LV) << rtcout.printf fmt << std::endl; \ rtcout.release()
Acquire log level and output format string as arguments.
#define RTC_NORMAL | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_NORMAL) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ), message will be output to log.
#define RTC_PARANOID | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_PARANOID) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( PARANOID ), message will be output to log.
#define RTC_TRACE | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_TRACE) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( TRACE, VERBOSE, PARANOID ), message will be output to log.
#define RTC_VERBOSE | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_VERBOSE) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( VERBOSE, PARANOID ), message will be output to log.
#define RTC_WARN | ( | fmt | ) |
Value:
rtcout.acquire(); \ rtcout.level(LogStream::RTL_WARN) << rtcout.printf fmt << std::endl; \ rtcout.release()
If log levels are ( WARN, INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ), message will be output to log.