This commit is contained in:
blue-lemon0104
2026-04-07 15:45:41 +08:00
parent 0120fa9ce3
commit 46fa58f6f8
27 changed files with 527 additions and 2818 deletions

View File

@@ -1,5 +1,6 @@
#include "LogBase.h"
#include "config.h"
#include <iostream>
namespace util {
@@ -19,7 +20,7 @@ namespace util {
m_enabled[log::timer] = false;
int pid = getpid();
char logPath[64] = {0};
sprintf(logPath, "/etc/encryptsql/encryptsql.%d.log", pid);
sprintf(logPath, ENCRYPTSQL_CONFIG_DIR "/encryptsql.%d.log", pid);
this->appender = new log4cpp::FileAppender("fileAppender", logPath, false);
auto pLayout = new log4cpp::PatternLayout();