SystemLogger.h

RT component logger class [詳細]

#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>

ソースコードを見る。

ネームスペース

namespace  RTC

構成

class  RTC::sync_callback< _CharT, _Traits >
class  RTC::basic_logbuf< _CharT, _Traits >
 ロガーバッファクラス [詳細]
class  RTC::basic_medlogbuf< _CharT, _Traits >
 仲介ロガーバッファクラス [詳細]
class  RTC::basic_dummybuf< _CharT, _Traits >
 ダミーバッファクラス [詳細]
class  RTC::basic_logstream< _CharT, _Traits >
 ロガーフォーマットクラス [詳細]

マクロ定義

#define RTC_LOG(LV, fmt)
 汎用ログ出力マクロ
#define RTC_ERROR(fmt)
 エラーログ出力マクロ。
#define RTC_WARN(fmt)
 ワーニングログ出力マクロ。
#define RTC_INFO(fmt)
 インフォログ出力マクロ。
#define RTC_NORMAL(fmt)
 ノーマルログ出力マクロ。
#define RTC_DEBUG(fmt)
 デバッグログ出力マクロ。
#define RTC_TRACE(fmt)
 トレースログ出力マクロ。
#define RTC_VERBOSE(fmt)
 ベルボーズログ出力マクロ。
#define RTC_PARANOID(fmt)
 パラノイドログ出力マクロ。

型定義

typedef sync_callback< char > RTC::SyncCallback
typedef basic_logbuf< char > RTC::Logbuf
typedef basic_medlogbuf< char > RTC::MedLogbuf
typedef basic_logstream< char > RTC::LogStream


説明

RT component logger class

日付:
Date
2007/07/20 16:10:32
作者:
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 RTC_DEBUG fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_DEBUG) << rtcout.printf fmt << std::endl; \
  rtcout.release()
デバッグログ出力マクロ。

デバッグレベルのログ出力マクロ。ログレベルが ( DEBUG, TRACE, VERBOSE, PARANOID ) の場合にログ出力される。

#define RTC_ERROR fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_ERROR)  << rtcout.printf fmt << std::endl; \
  rtcout.release()
エラーログ出力マクロ。

エラーレベルのログ出力マクロ。ログレベルが ERROR, WARN, INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID の場合にログ出力される。

#define RTC_INFO fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_INFO) << rtcout.printf fmt << std::endl;\
  rtcout.release()
インフォログ出力マクロ。

インフォレベルのログ出力マクロ。ログレベルが ( INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ) の場合にログ出力される。

#define RTC_LOG LV,
fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LV) << rtcout.printf fmt << std::endl; \
  rtcout.release()
汎用ログ出力マクロ

ログレベルおよび出力フォーマット文字列を引数としてとる。

#define RTC_NORMAL fmt   ) 
 

値:

rtcout.acquire();       \
  rtcout.level(LogStream::RTL_NORMAL) << rtcout.printf fmt << std::endl;\
  rtcout.release()
ノーマルログ出力マクロ。

ノーマルレベルのログ出力マクロ。ログレベルが ( NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ) の場合にログ出力される。

#define RTC_PARANOID fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_PARANOID) << rtcout.printf fmt << std::endl; \
  rtcout.release()
パラノイドログ出力マクロ。

パラノイドレベルのログ出力マクロ。ログレベルが ( PARANOID ) の場合にログ出力される。

#define RTC_TRACE fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_TRACE) << rtcout.printf fmt << std::endl; \
  rtcout.release()
トレースログ出力マクロ。

トレースレベルのログ出力マクロ。ログレベルが ( TRACE, VERBOSE, PARANOID ) の場合にログ出力される。

#define RTC_VERBOSE fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_VERBOSE) << rtcout.printf fmt << std::endl; \
  rtcout.release()
ベルボーズログ出力マクロ。

ベルボーズレベルのログ出力マクロ。ログレベルが ( VERBOSE, PARANOID ) の場合にログ出力される。

#define RTC_WARN fmt   ) 
 

値:

rtcout.acquire(); \
  rtcout.level(LogStream::RTL_WARN) << rtcout.printf fmt << std::endl;\
  rtcout.release()
ワーニングログ出力マクロ。

ウォーニングレベルのログ出力マクロ。ログレベルが ( WARN, INFO, NORMAL, DEBUG, TRACE, VERBOSE, PARANOID ) の場合にログ出力される。


OpenRTMに対してTue Sep 25 00:45:55 2007に生成されました。  doxygen 1.4.6