merge
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user