構成 | Public メソッド | Static Public メソッド | Static Public 変数 | Protected メソッド | Static Protected メソッド | Private 変数 | Static Private 変数

クラス NSHarkBinaural::Logger

ロギングする. [詳細]

#include <Logger.hpp>

すべてのメンバ一覧

構成

struct  OstreamPtr

Public メソッド

void AddHandler (std::ostream *os, bool needDelete=false)
void SetLevel (LogLevel newLevel)
LogLevel GetLevel () const
void Log (LogLevel level, const std::string &msg, const std::string &file="", const std::string &func="")
void Log (LogLevel level, const boost::format &msg, const std::string &file="", const std::string &func="")
void Finest (const std::string &msg, const std::string &file="", const std::string &func="")
void Finer (const std::string &msg, const std::string &file="", const std::string &func="")
void Fine (const std::string &msg, const std::string &file="", const std::string &func="")
void Config (const std::string &msg, const std::string &file="", const std::string &func="")
void Info (const std::string &msg, const std::string &file="", const std::string &func="")
void Warning (const std::string &msg, const std::string &file="", const std::string &func="")
void Severe (const std::string &msg, const std::string &file="", const std::string &func="")
void Finest (const boost::format &msg, const std::string &file="", const std::string &func="")
void Finer (const boost::format &msg, const std::string &file="", const std::string &func="")
void Fine (const boost::format &msg, const std::string &file="", const std::string &func="")
void Config (const boost::format &msg, const std::string &file="", const std::string &func="")
void Info (const boost::format &msg, const std::string &file="", const std::string &func="")
void Warning (const boost::format &msg, const std::string &file="", const std::string &func="")
void Severe (const boost::format &msg, const std::string &file="", const std::string &func="")
virtual ~Logger ()

Static Public メソッド

static LoggerGetLogger (const std::string &name)
 名前で指定されるロガーを取得する.

Static Public 変数

static const std::string GLOBAL_LOGGER_NAME = "global"
 グローバルロガーの名前.

Protected メソッド

 Logger (const std::string &name)

Static Protected メソッド

static void CreateLogger (const std::string &name)

Private 変数

LogLevel logLevel
const std::string name
std::vector< OstreamPtrostreams

Static Private 変数

static std::map< std::string,
boost::shared_ptr< Logger > > 
loggers

説明

ロギングする.


コンストラクタとデストラクタ

NSHarkBinaural::Logger::~Logger (  )  [virtual]
NSHarkBinaural::Logger::Logger ( const std::string &  name  )  [protected]

関数

void NSHarkBinaural::Logger::AddHandler ( std::ostream *  os,
bool  needDelete = false 
)
void NSHarkBinaural::Logger::Config ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Config ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::CreateLogger ( const std::string &  name  )  [static, protected]
void NSHarkBinaural::Logger::Fine ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Fine ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Finer ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Finer ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Finest ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Finest ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
LogLevel NSHarkBinaural::Logger::GetLevel (  )  const [inline]
Logger & NSHarkBinaural::Logger::GetLogger ( const std::string &  name  )  [static]

名前で指定されるロガーを取得する.

GLOBAL_LOGGER_NAME以外の名前が始めて指定されると、 出力ストリームが空のロガーが生成され、返される。

void NSHarkBinaural::Logger::Info ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Info ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Log ( LogLevel  level,
const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
)
void NSHarkBinaural::Logger::Log ( LogLevel  level,
const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::SetLevel ( LogLevel  newLevel  )  [inline]
void NSHarkBinaural::Logger::Severe ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Severe ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Warning ( const std::string &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]
void NSHarkBinaural::Logger::Warning ( const boost::format &  msg,
const std::string &  file = "",
const std::string &  func = "" 
) [inline]

変数

const string NSHarkBinaural::Logger::GLOBAL_LOGGER_NAME = "global" [static]

グローバルロガーの名前.

std::map< std::string, boost::shared_ptr< Logger > > NSHarkBinaural::Logger::loggers [static, private]
const std::string NSHarkBinaural::Logger::name [private]

このクラスの説明は次のファイルから生成されました: