Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

SystemLogger.h File Reference

RT component logger class. More...

#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

Defines

#define RTC_LOG(LV, fmt)
 Log output macro.
#define RTC_ERROR(fmt)
 Error log output macro.
#define RTC_WARN(fmt)
 Warning log output macro.
#define RTC_INFO(fmt)
 Infomation 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 > SyncCallback
typedef basic_logbuf< char > Logbuf
typedef basic_medlogbuf< char > MedLogbuf
typedef basic_logstream< char > LogStream


Detailed Description

RT component logger class.

Date:
Date
2007/07/20 16:10:32
Author:
Noriaki Ando <n-ando@aist.go.jp>
Copyright (C) 2003-2006 Task-intelligence Research Group, Intelligent Systems Research Institute, National Institute of Advanced Industrial Science and Technology (AIST), Japan All rights reserved.

Id
SystemLogger.h,v 1.5.2.1 2007/07/20 16:10:32 n-ando Exp

Define Documentation

#define RTC_DEBUG fmt   ) 
 

Value:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_DEBUG) << rtcout.printf fmt << std::endl; \
  rtcout.release()
Debug level log output macro.

If logging 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()
Error log output macro.

#define RTC_INFO fmt   ) 
 

Value:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_INFO) << rtcout.printf fmt << std::endl;\
  rtcout.release()
Infomation level log output macro.

If logging 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()
Log output macro.

#define RTC_NORMAL fmt   ) 
 

Value:

rtcout.acquire();       \
  rtcout.level(LogStream::RTL_NORMAL) << rtcout.printf fmt << std::endl;\
  rtcout.release()
Normal level log output macro.

If logging 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()
Paranoid level log output macro.

If logging 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()
Trace level log output macro.

If logging 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()
Verbose level log output macro.

If logging 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()
Warning log output macro.

If logging levels are ( WARN, INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ), message will be output to log.


Typedef Documentation

typedef basic_logbuf<char> RTC::Logbuf
 

typedef basic_logstream<char> RTC::LogStream
 

typedef basic_medlogbuf<char> RTC::MedLogbuf
 

typedef sync_callback<char> RTC::SyncCallback
 


Generated on Fri Oct 5 05:16:01 2007 for OpenRTM by  doxygen 1.4.1