asr_util_logger  1.0.0
asr::util::Logger クラス

ログ出力 [詳解]

#include <Logger.h>

asr::util::Logger 連携図
Collaboration graph

公開型

enum  Level {
  VBS, DBG, INF, WRN,
  ERR, FTL
}
 ログレベル [詳解]
 

公開メンバ関数

 Logger ()=delete
 
 Logger (std::unique_ptr< logger::ILogger > &&the_impl)
 
void output (const Level the_log_level, const std::string &the_file_name, const int the_line_number, const std::string &the_function_name, const std::string &the_message)
 ログ出力 [詳解]
 

非公開変数類

std::unique_ptr< logger::ILoggerm_impl
 

詳解

ログ出力

[サンプルコード]

void foo()
{
}

列挙型メンバ詳解

ログレベル

列挙値
VBS 

詳細な調査用。プロダクションコードには残さないこと。

DBG 

デバッグ用途

INF 

正常時、ユーザ or 運用担当者に通知したいケース

WRN 

処理は継続して良いが、後後のため通知するケース

ERR 

異常発生時

FTL 

実行を即停止せざるを得ないケース

構築子と解体子

asr::util::Logger::Logger ( )
delete
asr::util::Logger::Logger ( std::unique_ptr< logger::ILogger > &&  the_impl)
explicit

参照先 m_impl.

関数詳解

void asr::util::Logger::output ( const Level  the_log_level,
const std::string &  the_file_name,
const int  the_line_number,
const std::string &  the_function_name,
const std::string &  the_message 
)

ログ出力

引数
[in]the_log_level本ログのログレベル

参照先 m_impl.

メンバ詳解

std::unique_ptr<logger::ILogger> asr::util::Logger::m_impl
private

参照元 Logger(), output().


このクラス詳解は次のファイルから抽出されました: