|
@@ -2423,15 +2423,15 @@ nsGEN::PSGHRDriver::~PSGHRDriver()
|
|
|
|
|
|
void nsGEN::PSGHRDriver::Prepare()
|
|
|
{
|
|
|
- // ��ʼ����־ϵͳ
|
|
|
+ // 初始化日志系统
|
|
|
std::string strLogPath = GetProcessDirectory() + R"(/Conf/log_config.xml)";
|
|
|
std::string LogHost = "DevPSGHR";
|
|
|
std::string moduleName = "DevPSGHR";
|
|
|
bool ret = initLogModule(
|
|
|
- LogHost, // ��������������־·���е�{host}ռλ����
|
|
|
- moduleName, // Ψһģ����
|
|
|
- strLogPath, // ��������
|
|
|
- true // �Ƿ����������̨����ѡ��
|
|
|
+ LogHost, // 主机名(用于日志路径中的{host}占位符)
|
|
|
+ moduleName, // 唯一模块名
|
|
|
+ strLogPath, // 配置文件路径
|
|
|
+ true // 是否输出到控制台(可选)
|
|
|
);
|
|
|
if (!ret) {
|
|
|
std::cerr << "Log init failed!" << std::endl;
|