diff --git a/src/mysqlbackend.cpp b/src/mysqlbackend.cpp index 1af53c3a430a542831e7eae1fdf9d82edc98b45b..9bb5eaef76679f4d90feaec5b7c6ce8a40ed46d0 100644 --- a/src/mysqlbackend.cpp +++ b/src/mysqlbackend.cpp @@ -22,10 +22,8 @@ #include "transport/mysqlbackend.h" #include "transport/util.h" +#include "transport/logging.h" #include -#include "log4cxx/logger.h" - -using namespace log4cxx; #define MYSQL_DB_VERSION 2 #define CHECK_DB_RESPONSE(stmt) \ @@ -92,7 +90,7 @@ using namespace boost; namespace Transport { -static LoggerPtr logger = Logger::getLogger("MySQLBackend"); +DEFINE_LOGGER(logger, "MySQLBackend"); static bool exec_ok; MySQLBackend::Statement::Statement(MYSQL *conn, const std::string &format, const std::string &statement) {