Classes | Namespaces | Macros | Typedefs
SystemLogger.h File Reference

RT component logger class. More...

#include <rtm/config_rtc.h>
#include <coil/Time.h>
#include <coil/Logger.h>
#include <coil/Mutex.h>
#include <coil/Guard.h>
#include <coil/stringutil.h>
Include dependency graph for SystemLogger.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  RTC::Logger
 Logger class. More...
 

Namespaces

 RTC
 RT-Component.
 

Macros

#define RTC_DEBUG(fmt)   RTC_LOG(::RTC::Logger::RTL_DEBUG, fmt)
 Debug level log output macro. More...
 
#define RTC_DEBUG_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_DEBUG, str)
 
#define RTC_ERROR(fmt)   RTC_LOG(::RTC::Logger::RTL_ERROR, fmt)
 Error log output macro. More...
 
#define RTC_ERROR_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_ERROR, str)
 
#define RTC_FATAL(fmt)   RTC_LOG(::RTC::Logger::RTL_FATAL, fmt)
 Error log output macro. More...
 
#define RTC_FATAL_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_FATAL, str)
 
#define RTC_INFO(fmt)   RTC_LOG(::RTC::Logger::RTL_INFO, fmt)
 Information level log output macro. More...
 
#define RTC_INFO_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_INFO, str)
 
#define RTC_LOG(LV, fmt)
 General-purpose log output macro. More...
 
#define RTC_LOG_STR(LV, str)
 
#define RTC_PARANOID(fmt)   RTC_LOG(::RTC::Logger::RTL_PARANOID, fmt)
 Paranoid level log output macro. More...
 
#define RTC_PARANOID_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_PARANOID, str)
 
#define RTC_TRACE(fmt)   RTC_LOG(::RTC::Logger::RTL_TRACE, fmt)
 Trace level log output macro. More...
 
#define RTC_TRACE_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_TRACE, str)
 
#define RTC_VERBOSE(fmt)   RTC_LOG(::RTC::Logger::RTL_VERBOSE, fmt)
 Verbose level log output macro. More...
 
#define RTC_VERBOSE_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_VERBOSE, str)
 
#define RTC_WARN(fmt)   RTC_LOG(::RTC::Logger::RTL_WARN, fmt)
 Warning log output macro. More...
 
#define RTC_WARN_STR(str)   RTC_LOG_STR(::RTC::Logger::RTL_WARN, str)
 

Typedefs

typedef ::coil::LogStream RTC::LogStream
 
typedef ::coil::LogStreamBuffer RTC::LogStreamBuf
 

Detailed Description

RT component logger class.

Date
Date
2007-07-20 16:10:32
Author
Noriaki Ando n-and.nosp@m.o@ai.nosp@m.st.go.nosp@m..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
SystemLogger.h 2017 2010-12-30 16:38:36Z n-ando

Definition in file SystemLogger.h.

Macro Definition Documentation

#define RTC_DEBUG (   fmt)    RTC_LOG(::RTC::Logger::RTL_DEBUG, fmt)

Debug level log output macro.

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

Definition at line 488 of file SystemLogger.h.

#define RTC_DEBUG_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_DEBUG, str)

Definition at line 489 of file SystemLogger.h.

#define RTC_ERROR (   fmt)    RTC_LOG(::RTC::Logger::RTL_ERROR, fmt)

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.

Definition at line 422 of file SystemLogger.h.

#define RTC_ERROR_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_ERROR, str)

Definition at line 423 of file SystemLogger.h.

#define RTC_FATAL (   fmt)    RTC_LOG(::RTC::Logger::RTL_FATAL, fmt)

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.

Definition at line 400 of file SystemLogger.h.

#define RTC_FATAL_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_FATAL, str)

Definition at line 401 of file SystemLogger.h.

#define RTC_INFO (   fmt)    RTC_LOG(::RTC::Logger::RTL_INFO, fmt)

Information level log output macro.

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

Definition at line 466 of file SystemLogger.h.

#define RTC_INFO_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_INFO, str)

Definition at line 467 of file SystemLogger.h.

#define RTC_LOG (   LV,
  fmt 
)
Value:
if (rtclog.isValid(LV)) \
{ \
std::string str = ::coil::sprintf fmt; \
rtclog.lock(); \
rtclog.level(LV) << str << std::endl; \
rtclog.unlock(); \
}
std::string sprintf(char const *__restrict fmt,...)
Convert it into a format given with an argumen.
Definition: stringutil.cpp:593

General-purpose log output macro.

Lock log level and output format string as arguments.

Definition at line 364 of file SystemLogger.h.

#define RTC_LOG_STR (   LV,
  str 
)
Value:
if (rtclog.isValid(LV)) \
{ \
rtclog.lock(); \
rtclog.level(LV) << str << std::endl; \
rtclog.unlock(); \
}

Definition at line 373 of file SystemLogger.h.

#define RTC_PARANOID (   fmt)    RTC_LOG(::RTC::Logger::RTL_PARANOID, fmt)

Paranoid level log output macro.

If log levels are ( PARANOID ), message will be output to log.

Definition at line 555 of file SystemLogger.h.

#define RTC_PARANOID_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_PARANOID, str)

Definition at line 556 of file SystemLogger.h.

#define RTC_TRACE (   fmt)    RTC_LOG(::RTC::Logger::RTL_TRACE, fmt)

Trace level log output macro.

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

Definition at line 510 of file SystemLogger.h.

#define RTC_TRACE_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_TRACE, str)

Definition at line 511 of file SystemLogger.h.

#define RTC_VERBOSE (   fmt)    RTC_LOG(::RTC::Logger::RTL_VERBOSE, fmt)

Verbose level log output macro.

If log levels are ( VERBOSE, PARANOID ), message will be output to log.

Definition at line 533 of file SystemLogger.h.

#define RTC_VERBOSE_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_VERBOSE, str)

Definition at line 534 of file SystemLogger.h.

#define RTC_WARN (   fmt)    RTC_LOG(::RTC::Logger::RTL_WARN, fmt)

Warning log output macro.

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

Definition at line 444 of file SystemLogger.h.

#define RTC_WARN_STR (   str)    RTC_LOG_STR(::RTC::Logger::RTL_WARN, str)

Definition at line 445 of file SystemLogger.h.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:07:58