ログ管理クラス.
More...
#include <MunLogger.hpp>
|
| enum | MunLogRotate { MUN_LOG_ROTATE_NONE = 0,
MUN_LOG_ROTATE_DAILY = 1
} |
| |
|
| static void | SetLogRotate (MunLogRotate value) |
| | ログローテートの設定. More...
|
| |
| static void | Initialize (std::string processName, bool isOutputLogFile, std::string outputLogFileName) |
| | 初期化処理. More...
|
| |
|
static void | Finalize () |
| | 終了処理.
|
| |
| static void | OnOutput (MrsLogLevel level, const char *msg) |
| | ログの出力. More...
|
| |
|
static void | Reload () |
| | ログファイルの再読み込み.
|
| |
| static bool | Rotate (const char *src_file_name, const char *dst_file_name) |
| | ローテート. More...
|
| |
| void MunLogger::Initialize |
( |
std::string |
processName, |
|
|
bool |
isOutputLogFile, |
|
|
std::string |
outputLogFileName |
|
) |
| |
|
static |
初期化処理.
最終更新日時.
- Parameters
-
| processName | プロセス名. |
| isOutputLogFile | ログをファイルで出力するかどうかのフラグ. |
| outputLogFileName | ファイル出力する際のログのファイル名(パスを含める). |
初期化処理.
- Parameters
-
| processName | プロセス名. |
| isOutputLogFile | ログをファイルで出力するかどうかのフラグ. |
| outputLogFileName | ファイル出力する際のログのファイル名(パスを含める). |
| void MunLogger::OnOutput |
( |
MrsLogLevel |
level, |
|
|
const char * |
msg |
|
) |
| |
|
static |
| bool MunLogger::Rotate |
( |
const char * |
src_file_name, |
|
|
const char * |
dst_file_name |
|
) |
| |
|
static |
ローテート.
- Parameters
-
| ローテート元ファイル名. | |
| ローテート先ファイル名. | |
- Returns
- 成功ならtrue、失敗ならfalseを返す.
| static void MunLogger::SetLogRotate |
( |
MunLogRotate |
value | ) |
|
|
static |
| std::string MunLogger::s_LogFileName |
|
staticprotected |
| MunLogger::MunLogRotate MunLogger::s_LogRotate = MUN_LOG_ROTATE_NONE |
|
staticprotected |
| FILE * MunLogger::s_pLogFile = NULL |
|
staticprotected |
| std::string MunLogger::s_ProcessName = "" |
|
staticprotected |
| struct tm MunLogger::s_Updated |
|
staticprotected |
The documentation for this class was generated from the following files: