CTR NEX API Reference
nn::nex::EventLog クラス

NEX の内部ログ出力の管理クラスです。 [詳解]

#include <OnlineCore/src/Platform/Core/EventLog.h>

+ nn::nex::EventLog の継承関係図

公開型

enum  LogLevel {
  Debug = 1,
  Info = 2,
  Warning = 3,
  Error = 4,
  Fatal = 5,
  Always = 6
}
 ログの重要度を表す列挙子です。 [詳解]
 

公開メンバ関数

LogDeviceGetLogDevice ()
 LogDeviceを取得します。 [詳解]
 
LogLevel GetLogLevel ()
 現在のログレベルを取得します。 [詳解]
 
OutputFormatGetOutputFormat ()
 OutputFormatへのポインタを取得します。 [詳解]
 
void SetLogDevice (LogDevice *pLogDevice, qBool bDeleteCurrentDevice=true)
 LogDeviceを設定します。 [詳解]
 
void SetLogLevel (LogLevel lLevel)
 ログレベルを設定します [詳解]
 
void SetOutputFormat (OutputFormat *pOutputFormat)
 LogDeviceを設定します。 [詳解]
 

静的公開メンバ関数

static EventLogGetInstance ()
 EventLog のインスタンスを取得します。 [詳解]
 
static const qCharLogLevelToString (LogLevel lLevel)
 ログレベルの文字列表現を得ます。 [詳解]
 

詳解

NEX の内部ログ出力の管理クラスです。

NEX の内部ログ出力の管理クラスです。 EventLog::LogLevel を設定することで NEX のログ出力を コントロールすることができます。Release ビルドではログ出力は常に無効化されます。

列挙型メンバ詳解

ログの重要度を表す列挙子です。

列挙値
Debug 

NEX内部のデバッグ情報

Info 

NEX内部の処理の詳細情報(デフォルト)

Warning 

修正すべきだが無視しても動作可能なワーニング情報

Error 

修正すべきだが復帰可能なエラー

Fatal 

フェータルエラー。復帰不可能なエラー

Always 

常に出力されるログ情報

関数詳解

void nn::nex::EventLog::SetLogLevel ( LogLevel  lLevel)

ログレベルを設定します

ログレベルはログの重要度を表します。設定したログレベル以上の重要度のログのみ出力されます。

引数
[in]lLevel出力するログの重要度
LogLevel nn::nex::EventLog::GetLogLevel ( )

現在のログレベルを取得します。

戻り値
現在のログレベル
static const qChar* nn::nex::EventLog::LogLevelToString ( LogLevel  lLevel)
static

ログレベルの文字列表現を得ます。

戻り値
ログレベル文字列へのポインタ。未定義のログレベルを渡した場合は、Unknownとなります。
static EventLog* nn::nex::EventLog::GetInstance ( )
static

EventLog のインスタンスを取得します。

戻り値
EventLog のインスタンス
void nn::nex::Log::SetLogDevice ( LogDevice pLogDevice,
qBool  bDeleteCurrentDevice = true 
)
inherited

LogDeviceを設定します。

引数
[in]pLogDeviceLogDeviceを設定します。qNewで動的確保されている必要があります。
[in]bDeleteCurrentDevicetrue 現在のLogDeviceを自動削除します。false 現在のLogDeviceを削除しません。
参照
GetLogDevice()
void nn::nex::Log::SetOutputFormat ( OutputFormat pOutputFormat)
inherited

LogDeviceを設定します。

引数
[in]pOutputFormatOutputFormatを設定します。qNewで動的確保されている必要があります。。
参照
GetLogDevice()
LogDevice* nn::nex::Log::GetLogDevice ( )
inherited

LogDeviceを取得します。

戻り値
設定されているLogDeviceのポインタを返します。
OutputFormat* nn::nex::Log::GetOutputFormat ( )
inherited

OutputFormatへのポインタを取得します。

戻り値
OutputFormat へのポインタ