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

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


Detailed Description

RT component logger class.

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

Id

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

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()
Information level log output macro.

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()
General-purpose log output macro.

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()
Normal level log output macro.

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

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

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

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

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


Generated on Thu May 29 15:03:33 2008 for OpenRTM by  doxygen 1.5.3