#include <SystemLogger.h>
Public 型 | |
enum | { RTL_SILENT, RTL_ERROR, RTL_WARN, RTL_INFO, RTL_NORMAL, RTL_DEBUG, RTL_TRACE, RTL_VERBOSE, RTL_PARANOID, RTL_MANDATORY } |
typedef _CharT | char_type |
typedef _Traits | traits_type |
typedef basic_logbuf < char_type, traits_type > | __logbuf_type |
typedef basic_dummybuf < char_type, traits_type > | __dummybuf_type |
typedef basic_logstream < char_type, traits_type > | __logstream_type |
typedef std::basic_ostream < char_type, traits_type > | __ostream_type |
typedef std::basic_streambuf < char_type, traits_type > | __streambuf_type |
Public メソッド | |
basic_logstream (__streambuf_type &streambuf) | |
コンストラクタ | |
~basic_logstream () | |
デストラクタ | |
void | setLogLevel (const std::string &level) |
ログレベル設定 | |
void | setLogLevel (int level) |
ログレベル設定 | |
void | setLogLock (bool lock) |
ロックモード設定 | |
void | enableLogLock () |
ロックモード設定 | |
void | disableLogLock () |
ロックモード解除 | |
__ostream_type & | level (int level) |
ログストリームの取得 | |
void | acquire () |
ログロック取得 ロックモードが設定されている場合、ログのロックを取得する。 | |
void | release () |
ログロック解放 ロックモードが設定されている場合に、ログのロックを解放する。 | |
Static Public メソッド | |
static int | strToLogLevel (const std::string &lv) |
ログレベル設定 | |
static std::string | printf (char const *__restrict fmt,...) |
printf フォーマット出力 | |
Public 変数 | |
__ostream_type | m_DummyStream |
ダミーログ |
basic_ostream ライクなログフォーマットクラス。
typedef _CharT RTC::basic_logstream< _CharT, _Traits >::char_type |
typedef _Traits RTC::basic_logstream< _CharT, _Traits >::traits_type |
typedef basic_logbuf<char_type, traits_type> RTC::basic_logstream< _CharT, _Traits >::__logbuf_type |
typedef basic_dummybuf<char_type, traits_type> RTC::basic_logstream< _CharT, _Traits >::__dummybuf_type |
typedef basic_logstream<char_type, traits_type> RTC::basic_logstream< _CharT, _Traits >::__logstream_type |
typedef std::basic_ostream<char_type, traits_type> RTC::basic_logstream< _CharT, _Traits >::__ostream_type |
typedef std::basic_streambuf<char_type, traits_type> RTC::basic_logstream< _CharT, _Traits >::__streambuf_type |
anonymous enum |
RTC::basic_logstream< _CharT, _Traits >::basic_logstream | ( | __streambuf_type & | streambuf | ) | [inline] |
コンストラクタ
コンストラクタ
streambuf | basic_streambuf 型オブジェクト |
RTC::basic_logstream< _CharT, _Traits >::~basic_logstream | ( | ) | [inline] |
デストラクタ
デストラクタ。
static int RTC::basic_logstream< _CharT, _Traits >::strToLogLevel | ( | const std::string & | lv | ) | [inline, static] |
ログレベル設定
与えられた文字列に対応したログレベルを設定する。
lv | ログレベル文字列 |
static std::string RTC::basic_logstream< _CharT, _Traits >::printf | ( | char const *__restrict | fmt, | |
... | ||||
) | [inline, static] |
printf フォーマット出力
printfライクな書式でログ出力する。
fmt | 書式文字列 |
void RTC::basic_logstream< _CharT, _Traits >::setLogLevel | ( | const std::string & | level | ) | [inline] |
ログレベル設定
与えられた文字列に対応したログレベルを設定する。
level | ログレベル文字列 |
void RTC::basic_logstream< _CharT, _Traits >::setLogLevel | ( | int | level | ) | [inline] |
ログレベル設定
ログレベルを設定する。
level | ログレベル |
void RTC::basic_logstream< _CharT, _Traits >::setLogLock | ( | bool | lock | ) | [inline] |
ロックモード設定
ログのロックモードを設定する。
lock | ログロックフラグ |
void RTC::basic_logstream< _CharT, _Traits >::enableLogLock | ( | ) | [inline] |
ロックモード設定
ロックモードを有効にする。
void RTC::basic_logstream< _CharT, _Traits >::disableLogLock | ( | ) | [inline] |
ロックモード解除
ロックモードを無効にする。
__ostream_type& RTC::basic_logstream< _CharT, _Traits >::level | ( | int | level | ) | [inline] |
ログストリームの取得
指定されたログレベルを判断し、ログストリームを取得する。 指定されたログレベルが設定されているログレベル以下の場合には、本クラスを 返す。 指定されたログレベルが設定されているログレベルを超えている場合には、 ダミーログクラスを返す。
level | 指定ログレベル |
void RTC::basic_logstream< _CharT, _Traits >::acquire | ( | ) | [inline] |
ログロック取得 ロックモードが設定されている場合、ログのロックを取得する。
void RTC::basic_logstream< _CharT, _Traits >::release | ( | ) | [inline] |
ログロック解放 ロックモードが設定されている場合に、ログのロックを解放する。
__ostream_type RTC::basic_logstream< _CharT, _Traits >::m_DummyStream |
ダミーログ