NEX の内部ログ出力の管理クラスです。 [詳解]
#include <OnlineCore/src/Platform/Core/EventLog.h>
公開型 | |
enum | LogLevel { Debug = 1, Info = 2, Warning = 3, Error = 4, Fatal = 5, Always = 6 } |
ログの重要度を表す列挙子です。 [詳解] | |
公開メンバ関数 | |
LogDevice * | GetLogDevice () |
LogDeviceを取得します。 [詳解] | |
LogLevel | GetLogLevel () |
現在のログレベルを取得します。 [詳解] | |
OutputFormat * | GetOutputFormat () |
OutputFormatへのポインタを取得します。 [詳解] | |
void | SetLogDevice (LogDevice *pLogDevice, qBool bDeleteCurrentDevice=true) |
LogDeviceを設定します。 [詳解] | |
void | SetLogLevel (LogLevel lLevel) |
ログレベルを設定します [詳解] | |
void | SetOutputFormat (OutputFormat *pOutputFormat) |
LogDeviceを設定します。 [詳解] | |
静的公開メンバ関数 | |
static EventLog * | GetInstance () |
EventLog のインスタンスを取得します。 [詳解] | |
static const qChar * | LogLevelToString (LogLevel lLevel) |
ログレベルの文字列表現を得ます。 [詳解] | |
NEX の内部ログ出力の管理クラスです。
NEX の内部ログ出力の管理クラスです。 EventLog::LogLevel を設定することで NEX のログ出力を コントロールすることができます。Release ビルドではログ出力は常に無効化されます。
void nn::nex::EventLog::SetLogLevel | ( | LogLevel | lLevel | ) |
ログレベルを設定します
ログレベルはログの重要度を表します。設定したログレベル以上の重要度のログのみ出力されます。
[in] | lLevel | 出力するログの重要度 |
LogLevel nn::nex::EventLog::GetLogLevel | ( | ) |
現在のログレベルを取得します。
ログレベルの文字列表現を得ます。
|
static |
|
inherited |
LogDeviceを設定します。
[in] | pLogDevice | LogDeviceを設定します。qNewで動的確保されている必要があります。 |
[in] | bDeleteCurrentDevice | true 現在のLogDeviceを自動削除します。false 現在のLogDeviceを削除しません。 |
|
inherited |
|
inherited |
LogDeviceを取得します。
|
inherited |
OutputFormatへのポインタを取得します。